[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] [POWERPC] finddevice must return a phandle of -1
# 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
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |