|
|
|
|
|
|
|
|
|
|
xen-changelog
[Xen-changelog] [xen-unstable] [powerpc] Use new method to detect NULL x
# HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 7c3a27bb291eba0f70baedd2f78d9bf5db553d0b
# Parent a438506e241df054ba801fa08fe833005102aba9
[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 a438506e241d -r 7c3a27bb291e xen/arch/powerpc/usercopy.c
--- a/xen/arch/powerpc/usercopy.c Fri Jul 28 13:00:57 2006 +0100
+++ 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-changelog] [xen-unstable] [powerpc] Use new method to detect NULL xencomm handle,
Xen patchbot-unstable <=
|
|
|
|
|