K 10 svn:author V 6 emaste K 8 svn:date V 27 2022-03-31T00:33:13.017521Z K 7 svn:log V 487 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) Git Hash: aeb4214375b7197ccc7c6ad9b2bc3185545eaf8e Git Author: emaste@FreeBSD.org END