[Bug 262671] Kernel panics after a invalid SNDCTL_MIXERINFO ioctl

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 24 Mar 2022 00:14:30 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262671

--- Comment #14 from Ed Maste <emaste@freebsd.org> ---
> why the `if` statement didn't work when the condition was in reverse order

The || operator performs short-circuit evaluation - if the first condition is
true the second is not evaluated. I am still curious why there's an extra NULL
entry in your case. If you're willing I may have a patch in the future to show
some diagnostic information for this case.

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