|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-ppc-devel
[XenPPC] [xenppc-unstable] [powerpc] Use new method to detect NULL	xenco
 
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 9b1567ef3b2a810f991edf67cf3e1c7d70e9c5a8
# Parent  f77ff6eb8d221e8414bb632bba7276fede4903f1
[powerpc] Use new method to detect NULL xencomm handle
old method wasted cycles and could give false positive.
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/usercopy.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
diff -r f77ff6eb8d22 -r 9b1567ef3b2a xen/arch/powerpc/usercopy.c
--- a/xen/arch/powerpc/usercopy.c       Wed Jul 26 14:27:51 2006 -0400
+++ b/xen/arch/powerpc/usercopy.c       Thu Jul 27 18:57:34 2006 -0400
@@ -238,5 +238,5 @@ int xencomm_handle_is_null(void *ptr)
 
     desc = (struct xencomm_desc *)paddr_to_maddr((unsigned long)ptr);
 
-    return (desc->address[0] == XENCOMM_INVALID);
-}
+    return (desc->nr_addrs == 0);
+}
_______________________________________________
Xen-ppc-devel mailing list
Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-ppc-devel
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [XenPPC] [xenppc-unstable] [powerpc] Use new method to detect NULL	xencomm handle,
Xen patchbot-xenppc-unstable <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |