mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
[POWERPC] finddevice must return a phandle of -1
Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com> Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
This commit is contained in:
1 parent
0570dc5fe0
commit
aef618dfdc
1 file changed
+2
@@ -203,12 +203,14 @@ ofh_finddevice(u32 nargs, u32 nrets, s32 argp[], s32 retp[], ulong b)
|
||||
/* 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;
|
||||
}
|
||||
}
|
||||
|
||||