[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:
Jimi Xenidis committed 2006-08-01 16:42:48 -04:00
1 parent 0570dc5fe0
commit aef618dfdc
1 file changed
+2
+2
View File
@@ -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;
}
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.