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

[Xen-changelog] [xen-unstable] [IA64] Add NULL test in domain_page_mapped()



# HG changeset patch
# User awilliam@xxxxxxxxxxx
# Node ID ececeade018f220defbea820b98b89c1de51be3a
# Parent  1c9bdbc5e27be24c5ff9b1a5d74ddf2b765b8ade
[IA64] Add NULL test in domain_page_mapped()

Signed-off-by: Isaku Yamahata <yamahata@xxxxxxxxxxxxx>
---
 xen/arch/ia64/xen/mm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff -r 1c9bdbc5e27b -r ececeade018f xen/arch/ia64/xen/mm.c
--- a/xen/arch/ia64/xen/mm.c    Fri Jun 09 10:35:36 2006 -0600
+++ b/xen/arch/ia64/xen/mm.c    Fri Jun 09 10:35:37 2006 -0600
@@ -1053,8 +1053,8 @@ domain_page_mapped(struct domain* d, uns
 {
     pte_t * pte;
 
-    pte=lookup_noalloc_domain_pte(d, mpaddr);
-    if(!pte_none(*pte))
+    pte = lookup_noalloc_domain_pte(d, mpaddr);
+    if(pte != NULL && !pte_none(*pte))
        return 1;
     return 0;
 }

_______________________________________________
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®.