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)
Fri, Oct 2, 5:56 PM
Unknown Object (File)
Wed, Sep 30, 5:37 PM
Unknown Object (File)
Tue, Sep 22, 3:53 PM
Unknown Object (File)
Mon, Sep 21, 1:23 AM
Unknown Object (File)
Wed, Sep 9, 6:04 PM
Unknown Object (File)
Sep 2 2026, 9:03 PM
Unknown Object (File)
Sep 2 2026, 9:03 PM
Unknown Object (File)
Sep 2 2026, 9:03 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