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)
Fri, Mar 29, 8:22 AM
Unknown Object (File)
Mar 7 2024, 4:27 PM
Unknown Object (File)
Jan 14 2024, 9:11 AM
Unknown Object (File)
Dec 23 2023, 1:29 AM
Unknown Object (File)
Dec 16 2023, 1:00 PM
Unknown Object (File)
Dec 12 2023, 2:29 AM
Unknown Object (File)
Oct 13 2023, 11:08 AM
Unknown Object (File)
Sep 11 2023, 1:30 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
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.