[PATCH] fix OF_finddevice return value checks on sparc64
Jayachandran C.
jchandra at freebsd.org
Fri Dec 2 14:05:45 UTC 2011
While going thru the OF_finddevice usage in kernel (to fix up the FDT
interface) I noticed that a few calls made to OF_finddevice in
sparc64 does not check the return value correctly.
The error return is -1 not 0, and since the value is unsigned,
checking it for '< 0' does not work either. The attached patch fixes
this.
Regards,
JC.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc64-of-finddev-fixes.patch
Type: text/x-patch
Size: 995 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-sparc64/attachments/20111202/1da836f8/sparc64-of-finddev-fixes.bin
More information about the freebsd-sparc64
mailing list