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)
Sun, Apr 27, 7:59 AM
Unknown Object (File)
Sun, Apr 13, 8:11 PM
Unknown Object (File)
Feb 10 2025, 12:58 PM
Unknown Object (File)
Feb 9 2025, 2:56 AM
Unknown Object (File)
Jan 24 2025, 5:30 PM
Unknown Object (File)
Jan 18 2025, 9:47 PM
Unknown Object (File)
Jan 18 2025, 9:42 PM
Unknown Object (File)
Jan 18 2025, 6:16 AM
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
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.