Page MenuHomeFreeBSD

gpiopower: Fix failure case for attach
ClosedPublic

Authored by jhibbits on Mar 15 2022, 6:37 PM.
Tags
None
Referenced Files
F107553637: D34571.id103894.diff
Wed, Jan 15, 7:59 PM
Unknown Object (File)
Sat, Jan 11, 8:35 PM
Unknown Object (File)
Nov 30 2024, 10:50 PM
Unknown Object (File)
Nov 28 2024, 9:12 PM
Unknown Object (File)
Nov 20 2024, 7:23 AM
Unknown Object (File)
Nov 20 2024, 7:13 AM
Unknown Object (File)
Nov 16 2024, 9:19 AM
Unknown Object (File)
Oct 30 2024, 7:33 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.