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] [POWERPC] finddevice must return a phandl

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] [POWERPC] finddevice must return a phandle of -1
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 09 Aug 2006 18:20:27 +0000
Delivery-date: Wed, 09 Aug 2006 11:23:39 -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 Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
# Node ID 9d5d7d8b71250cb1449e46e60043d8bd3a78182b
# Parent  c8870f1aa5ca3b55579158fc0ee6cff80bbcd65c
[POWERPC] finddevice must return a phandle of -1
Signed-off-by: Jimi Xenidis <jimix@xxxxxxxxxxxxxx>
Signed-off-by: Hollis Blanchard <hollisb@xxxxxxxxxx>
---
 xen/arch/powerpc/of_handler/devtree.c |    2 ++
 1 files changed, 2 insertions(+)

diff -r c8870f1aa5ca -r 9d5d7d8b7125 xen/arch/powerpc/of_handler/devtree.c
--- a/xen/arch/powerpc/of_handler/devtree.c     Wed Aug 02 13:56:41 2006 -0500
+++ 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-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] finddevice must return a phandle of -1, Xen patchbot-unstable <=