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] [xen-unstable] [IA64] Add NULL test in domain_page_mappe

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [IA64] Add NULL test in domain_page_mapped()
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 16 Jun 2006 18:40:47 +0000
Delivery-date: Fri, 16 Jun 2006 11:45:10 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] [IA64] Add NULL test in domain_page_mapped(), Xen patchbot-unstable <=