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)
Thu, Oct 9, 7:24 PM
Unknown Object (File)
Thu, Oct 9, 2:40 AM
Unknown Object (File)
Wed, Sep 24, 11:43 AM
Unknown Object (File)
Sep 13 2025, 12:59 AM
Unknown Object (File)
Sep 12 2025, 12:38 PM
Unknown Object (File)
Aug 16 2025, 4:59 AM
Unknown Object (File)
Aug 15 2025, 4:49 PM
Unknown Object (File)
Aug 15 2025, 12:02 AM
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