HomeFreeBSD

sound: Call DSP_REGISTERED before PCM_DETACHING

Description

sound: Call DSP_REGISTERED before PCM_DETACHING

DSP_REGISTERED first checks if the softc is not null, through
PCM_REGISTERED, which in turn calls PCM_ALIVE, whereas PCM_DETACHING
accesses the softc flags directly.

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

Details

Provenance
christosAuthored on Oct 24 2024, 11:37 AM
Reviewer
dev_submerge.ch
Differential Revision
D47195: sound: Call DSP_REGISTERED before PCM_DETACHING
Parents
rG8efb1500d4f1: arm64: Enable handling EFI runtime service faults
Branches
Unknown
Tags
Unknown