Page MenuHomeFreeBSD

gpiopower: Fix failure case for attach
ClosedPublic

Authored by jhibbits on Mar 15 2022, 6:37 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Sep 10, 6:24 PM
Unknown Object (File)
Sun, Sep 6, 3:59 PM
Unknown Object (File)
Sun, Sep 6, 1:50 AM
Unknown Object (File)
Sat, Sep 5, 5:43 PM
Unknown Object (File)
Sat, Sep 5, 4:29 PM
Unknown Object (File)
Sat, Sep 5, 4:28 PM
Unknown Object (File)
Fri, Sep 4, 7:00 PM
Unknown Object (File)
Fri, Sep 4, 6:33 PM
Subscribers

Details

Summary

We really should be checking the return value of
ofw_gpiobus_parse_gpios_impl, not the value of sc_pins, which isn't
changed on failure.

Reported by: alfredo@

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 44786
Build 41674: arc lint + arc unit

Event Timeline

LGTM. Thanks, it fixes the kernel crashing with QEMU -M ppce500.

This revision is now accepted and ready to land.Mar 15 2022, 7:12 PM
This revision was automatically updated to reflect the committed changes.