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)
Wed, May 6, 10:02 PM
Unknown Object (File)
Wed, May 6, 5:35 AM
Unknown Object (File)
Tue, May 5, 11:56 PM
Unknown Object (File)
Sun, May 3, 11:50 PM
Unknown Object (File)
Tue, Apr 28, 2:19 PM
Unknown Object (File)
Mon, Apr 27, 9:37 AM
Unknown Object (File)
Thu, Apr 23, 10:06 AM
Unknown Object (File)
Sun, Apr 19, 4:21 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