Page MenuHomeFreeBSD

gpiobus: gpiobus_acquire_pin: panic on invalid pin
ClosedPublic

Authored by vexeduxr on Jun 19 2025, 2:33 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jan 12, 11:25 AM
Unknown Object (File)
Mon, Dec 29, 7:30 PM
Unknown Object (File)
Dec 10 2025, 10:51 PM
Unknown Object (File)
Dec 7 2025, 11:39 AM
Unknown Object (File)
Nov 28 2025, 9:55 AM
Unknown Object (File)
Nov 25 2025, 8:11 PM
Unknown Object (File)
Nov 23 2025, 10:01 PM
Unknown Object (File)
Nov 3 2025, 9:56 AM
Subscribers
None

Details

Summary

It is a programming error to call this function with an invalid pin.
Also return proper error value on failure.

Suggested by: mmel

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 64982
Build 61865: arc lint + arc unit

Event Timeline

vexeduxr created this revision.
This revision is now accepted and ready to land.Jun 19 2025, 2:38 PM

Go ahead and commit this. I saw the discussion, and this represents what was talked about elsewhere.