[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] Unmap domain page on exit
# HG changeset patch # User adsharma@xxxxxxxxxxxxxxxxxxxx # Node ID 44e70a3d6b4c6eb69c1b837d6629cbfd06852ed0 # Parent 765d27ed051697f84866c391c262c4f649b7b686 Unmap domain page on exit Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx> Signed-off-by: Arun Sharma <arun.sharma@xxxxxxxxx> diff -r 765d27ed0516 -r 44e70a3d6b4c xen/arch/x86/shadow32.c --- a/xen/arch/x86/shadow32.c Wed Aug 17 19:21:31 2005 +++ b/xen/arch/x86/shadow32.c Wed Aug 17 19:21:37 2005 @@ -1917,8 +1917,10 @@ snapshot = map_domain_page(smfn); if (__copy_from_user(&gpte, &guest_pt[index], - sizeof(gpte))) + sizeof(gpte))) { + unmap_domain_page(snapshot); return 0; + } // This could probably be smarter, but this is sufficent for // our current needs. _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |