Page MenuHomeFreeBSD

sound: Use bus_child_deleted methods to free ivars for children
ClosedPublic

Authored by jhb on Oct 31 2024, 8:36 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Aug 9, 3:39 PM
Unknown Object (File)
Sun, Aug 9, 12:37 PM
Unknown Object (File)
Sun, Aug 9, 9:51 AM
Unknown Object (File)
Thu, Aug 6, 9:52 PM
Unknown Object (File)
Sun, Jul 26, 10:04 AM
Unknown Object (File)
Fri, Jul 24, 10:15 PM
Unknown Object (File)
Wed, Jul 22, 6:53 PM
Unknown Object (File)
Jul 9 2026, 9:13 PM
Subscribers
None

Details

Summary

Note that hdsp and hdspe were just leaking the ivars on detach
previously.

While here, use M_WAITOK to allocate ivars since attach routines are
sleepable. hdsp and hdspe were using M_NOWAIT without checking the
return value.

Diff Detail

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