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, Feb 8, 3:46 PM
Unknown Object (File)
Sat, Feb 7, 6:20 PM
Unknown Object (File)
Mon, Feb 2, 8:41 AM
Unknown Object (File)
Sun, Feb 1, 1:52 PM
Unknown Object (File)
Sat, Jan 31, 1:13 AM
Unknown Object (File)
Dec 29 2025, 4:28 PM
Unknown Object (File)
Dec 12 2025, 1:50 AM
Unknown Object (File)
Dec 9 2025, 2:45 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