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, Jul 9, 9:13 PM
Unknown Object (File)
Thu, Jul 9, 1:48 AM
Unknown Object (File)
Thu, Jul 9, 12:08 AM
Unknown Object (File)
Wed, Jul 8, 3:03 AM
Unknown Object (File)
Wed, Jul 8, 3:02 AM
Unknown Object (File)
Tue, Jul 7, 9:47 AM
Unknown Object (File)
Sun, Jul 5, 8:19 AM
Unknown Object (File)
May 6 2026, 10:02 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 60303
Build 57187: arc lint + arc unit