HomeFreeBSD

bhnd_chipc(4): Fix leak of child device ivars by explicitly deleting

Description

bhnd_chipc(4): Fix leak of child device ivars by explicitly deleting
any children prior to detach.

With the newbus child deletion ordering changes introduced in r307518,
parent devices are now detached (and their driver set to NULL) prior to
detaching and deleting child devices; child-related bus methods (e.g.
BUS_CHILD_DETACHED, BUS_CHILD_DELETED) are no longer be dispatched to the
parent device driver after it returns 0 (success) from DEVICE_DETACH.

Sponsored by: The FreeBSD Foundation

Details

Provenance
landonfAuthored on
Parents
rS328186: MFC r327946 r327947:
Branches
Unknown
Tags
Unknown