|  |  | 
  
    |  |  | 
 
  |   |  | 
  
    |  |  | 
  
    |  |  | 
  
    |   xen-ppc-devel
[XenPPC] [xenppc-unstable] [POWERPC] finddevice must return a	phandle of 
| # HG changeset patch
# User Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID a75c389e4a7d23f8ab3345bf8f417d9c2fe471c0
# Parent  a40c8bae08a81181c38a43a744b5d87db22066ea
[POWERPC] finddevice must return a phandle of -1
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
---
 xen/arch/powerpc/of_handler/devtree.c |    2 ++
 1 files changed, 2 insertions(+)
diff -r a40c8bae08a8 -r a75c389e4a7d xen/arch/powerpc/of_handler/devtree.c
--- a/xen/arch/powerpc/of_handler/devtree.c     Tue Aug 01 16:40:33 2006 -0400
+++ b/xen/arch/powerpc/of_handler/devtree.c     Tue Aug 01 16:42:48 2006 -0400
@@ -203,12 +203,14 @@ ofh_finddevice(u32 nargs, u32 nrets, s32
             /* good enuff */
             if (devspec[0] == '\0') {
                 if (*ap == -1) {
+                    *ph = -1;
                     return OF_FAILURE;
                 }
                 *ph = *ap;
             } else {
                 *ph = ofd_node_find(mem, devspec);
                 if (*ph <= 0) {
+                    *ph = -1;
                     return OF_FAILURE;
                 }
             }
_______________________________________________
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] finddevice must return a	phandle of -1,
Xen patchbot-xenppc-unstable <=
 |  |  | 
  
    |  |  |