[Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 30 Mar 2022 20:45:22 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262671

--- Comment #16 from commit-hook@FreeBSD.org ---
A commit in branch stable/13 references this bug:

URL:
https://cgit.FreeBSD.org/src/commit/?id=74f11a40f8e4e1b3ae254edf499d467153242ce9

commit 74f11a40f8e4e1b3ae254edf499d467153242ce9
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-03-21 16:15:22 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-03-30 20:43:57 +0000

    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)

 sys/dev/sound/pcm/mixer.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

-- 
You are receiving this mail because:
You are the assignee for the bug.