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

Details

Provenance
emasteAuthored on Mar 21 2022, 4:15 PM
Reviewer
hselasky
Differential Revision
D34648: sound: test PCM_REGISTERED before PCM_DETACHING
Parents
rG4b1e2c2f77d3: bsdinstall(8): Usage example of tar doesn't work
Branches
Unknown
Tags
Unknown