Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 21 Mar 2022 20:51:30 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl
Message-ID:  <bug-262671-227-U24m6jiRnw@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-262671-227@https.bugs.freebsd.org/bugzilla/>
References:  <bug-262671-227@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D262671

--- Comment #12 from Aleksander Slomka <alex@alexslomka.xyz> ---
(In reply to Ed Maste from comment #11)

Thank you for the help! The patch indeed solves the issue for me. Now the
`ioctl` properly returns `EINVAL`:

 31415 test     CALL  ioctl(0x3,SNDCTL_MIXERINFO,0x8210902e0)
 31415 test     RET   ioctl -1 errno 22 Invalid argument

It makes sense that this works, since PCM_REGISTERED is checking if it's
argument is equal to NULL, just like my patch did, but I don't understand w=
hy
the `if` statement didn't work when the condition was in reverse order.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-262671-227-U24m6jiRnw>