HomeFreeBSD

sound: test PCM_REGISTERED before PCM_DETACHING

Description

sound: test PCM_REGISTERED before PCM_DETACHING

PCM_REGISTERED(d) tests that d is not NULL, so perform that check first
as we may have cases where devclass_get_softc has a null entry.

PR: 262671
Reviewed by: hselasky
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34648

(cherry picked from commit da03ac41c9bca270b491fcf4bf219c4108688a05)

Details

Provenance
emasteAuthored on Mar 21 2022, 4:15 PM
Reviewer
hselasky
Differential Revision
D34648: sound: test PCM_REGISTERED before PCM_DETACHING
Parents
rGb31b45f26a0b: Remove snd_aureal driver source
Branches
Unknown
Tags
Unknown