[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: A further fix to paging_log_dirty_op() -- do not unmap_domain_page(NULL)



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1238655191 -3600
# Node ID 6dc5c26a75b90b04e7ed73cebd4643897f26c7c7
# Parent  b5e7c26835c9fc2e9c26e27478a938e36f98d645
x86: A further fix to paging_log_dirty_op() -- do not unmap_domain_page(NULL)

Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx>
---
 xen/arch/x86/mm/paging.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletion(-)

diff -r b5e7c26835c9 -r 6dc5c26a75b9 xen/arch/x86/mm/paging.c
--- a/xen/arch/x86/mm/paging.c  Wed Apr 01 16:20:30 2009 +0100
+++ b/xen/arch/x86/mm/paging.c  Thu Apr 02 07:53:11 2009 +0100
@@ -430,7 +430,8 @@ int paging_log_dirty_op(struct domain *d
         if ( l3 )
             unmap_domain_page(l3);
     }
-    unmap_domain_page(l4);
+    if ( l4 )
+        unmap_domain_page(l4);
 
     if ( pages < sc->pages )
         sc->pages = pages;

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.