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
F153748518: D47366.id145797.diff
Thu, Apr 23, 10:06 AM
Unknown Object (File)
Sun, Apr 19, 4:21 PM
Unknown Object (File)
Wed, Apr 15, 10:19 PM
Unknown Object (File)
Wed, Apr 8, 7:04 AM
Unknown Object (File)
Mar 23 2026, 8:12 PM
Unknown Object (File)
Mar 23 2026, 11:00 AM
Unknown Object (File)
Mar 22 2026, 6:40 PM
Unknown Object (File)
Mar 14 2026, 7:17 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