HomeFreeBSD

bhndb(4): Fix leak of child devices and MSI vectors.

Description

bhndb(4): Fix leak of child devices and MSI vectors.

  • Add missing call to device_delete_children() in bhndb_detach(), without which we're left with stale child devices on module unload.
  • Pass the parent PCI device to pci_release_msi(), not the bhndb_pci(4) child.

Approved by: adrian (mentor, implicit)
Sponsored by: The FreeBSD Foundation

Details

Provenance
landonfAuthored on
Parents
rS326450: bhnd_chipc(4): Break cyclic references to the ChipCommon device
Branches
Unknown
Tags
Unknown