CVSROOT:        /cvs
Module name:    src
Changes by:     patr...@cvs.openbsd.org 2020/06/06 10:59:43

Modified files:
        sys/dev/ofw    : ofw_misc.c ofw_pinctrl.c ofw_regulator.c 

Log message:
Some devices have no phandle since they are not referenced in the
device tree, but they are still registered in our OFW framework.
These then tend to have a phandle 0.  If we are trying to lookup
a device by phandle, we should explicitly check for phandle 0 and
bail, since otherwise it is possible that we falsely match that
phandle and return a device.

ok kettenis@

Reply via email to