HomeFreeBSD

snd_dummy: Drain callout during detach

Description

snd_dummy: Drain callout during detach

If we do not enter dummy_chan_trigger() before detaching, we'll get a
use-after-free since the callout(9) callback might be called after
having been detached.

Sponsored by: The FreeBSD Foundation
MFC after: 2 days
Reviewed by: dev_submerge.ch, markj, emaste
Differential Revision: https://reviews.freebsd.org/D46715

Details

Provenance
christosAuthored on Fri, Oct 18, 8:40 AM
Reviewer
dev_submerge.ch
Differential Revision
D46715: snd_dummy: Drain callout during detach
Parents
rG97570db05ced: sound: Move root feeder initialization to separate function
Branches
Unknown
Tags
Unknown