Page MenuHomeFreeBSD

gpiobus: plug IRQ leaks
ClosedPublic

Authored by vexeduxr on Jul 15 2025, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Feb 8, 7:32 AM
Unknown Object (File)
Jan 31 2026, 2:38 AM
Unknown Object (File)
Jan 25 2026, 10:26 AM
Unknown Object (File)
Jan 21 2026, 12:07 PM
Unknown Object (File)
Jan 4 2026, 3:21 AM
Unknown Object (File)
Dec 19 2025, 4:35 AM
Unknown Object (File)
Dec 11 2025, 2:49 PM
Unknown Object (File)
Dec 9 2025, 5:05 AM
Subscribers

Details

Summary

Unmap the IRQ instead of just freeing the map data in the case of an
error. Also don't overwrite the resource's virtual address since the
copy of the map data made by intr_activate_irq is stored there.

Implement gpiobus_release_resource so it can unmap IRQs mapped by
gpio_alloc_intr_resource.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jul 15 2025, 5:45 PM
This revision was landed with ongoing or failed builds.Jul 17 2025, 12:48 AM
This revision was automatically updated to reflect the committed changes.