[Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 31 Mar 2022 00:32:11 UTC

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


commit aeb4214375b7197ccc7c6ad9b2bc3185545eaf8e
Author:     Ed Maste <emaste@FreeBSD.org>
AuthorDate: 2022-03-21 16:15:22 +0000
Commit:     Ed Maste <emaste@FreeBSD.org>
CommitDate: 2022-03-31 00:31:44 +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.