x86/mm: fix wrong unmap call
authorHongyan Xia <hongyxia@amazon.com>
Thu, 22 Apr 2021 17:42:30 +0000 (18:42 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 22 Apr 2021 17:49:23 +0000 (18:49 +0100)
commitf889fa267c47c3495d304da5da9dd2ef8a4c95af
tree80ddf12bdd1a13b9d24a77a7085025eca66ab8e8
parenta60a72c17f116f6ef0fe2a5a77f8faa912d848b2
x86/mm: fix wrong unmap call

Commit 'x86/mm: switch to new APIs in modify_xen_mappings' applied the
hunk of the unmap call to map_pages_to_xen() which was wrong and clearly
should have been at the end of modify_xen_mappings(). Fix.

Fixes: dd68f2e49bea ("x86/mm: switch to new APIs in modify_xen_mappings")
Signed-off-by: Hongyan Xia <hongyxia@amazon.com>
Tested-by: Julien Grall <jgrall@amazon.com>
Tested-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/mm.c