WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[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

<Prev in Thread] Current Thread [Next in Thread>