Page MenuHomeFreeBSD

gpiobus: plug IRQ leaks
ClosedPublic

Authored by vexeduxr on Jul 15 2025, 11:11 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 3:49 PM
Unknown Object (File)
Sat, Oct 11, 7:19 AM
Unknown Object (File)
Sat, Oct 11, 7:19 AM
Unknown Object (File)
Sat, Oct 11, 12:02 AM
Unknown Object (File)
Wed, Oct 8, 1:12 AM
Unknown Object (File)
Wed, Sep 24, 1:03 PM
Unknown Object (File)
Sep 14 2025, 5:12 AM
Unknown Object (File)
Sep 13 2025, 10:20 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.