]> xenbits.xensource.com Git - xen.git/commit
xen/arm: add_to_physmap_one: Avoid to map mfn 0 if an error occurs
authorJulien Grall <julien.grall@linaro.org>
Wed, 23 Oct 2013 16:28:47 +0000 (17:28 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 24 Oct 2013 13:02:02 +0000 (14:02 +0100)
commit55021ff9ab691f8c79c1f881aa8ac40ae1cd4ab9
treeb31ca08997a53cabe67be554b1ed00d99d6b473e
parent170fa9967176c8627fe2e75dbe1dc5212019afde
xen/arm: add_to_physmap_one: Avoid to map mfn 0 if an error occurs

By default, the function add_to_physmap_one set mfn to 0. Some code paths that
result to an error, continue and the map the mfn 0 (valid on ARM) to the
slot given by the guest.

To fix the problem, return directly an error if sanity check has failed.

Signed-off-by: Julien Grall <julien.grall@linaro.org>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
xen/arch/arm/mm.c