[Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 20 Mar 2022 08:34:23 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262671

--- Comment #6 from Aleksander Slomka <alex@alexslomka.xyz> ---
I'm on commit 1b3bef43e3cb7fb0ab49b813839915514c1134cc. 

kgdb shows that the panic happens on this line:

1463            if (PCM_DETACHING(d) || !PCM_REGISTERED(d))

So for some reason when I specify a invalid `dev` value, `d` is still equal to
`NULL` after this statement:

1462            d = devclass_get_softc(pcm_devclass, i);

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