FreeBSD Bugzilla – Attachment 232581 Details for
Bug 262671
Kernel panics after a invalid SNDCTL_MIXERINFO ioctl
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
A patch that should fix brought up issue.
0001-Add-NULL-check-to-prevent-panic.patch (text/plain), 773 bytes, created by
Aleksander Slomka
on 2022-03-19 16:36:25 UTC
(
hide
)
Description:
A patch that should fix brought up issue.
Filename:
MIME Type:
Creator:
Aleksander Slomka
Created:
2022-03-19 16:36:25 UTC
Size:
773 bytes
patch
obsolete
>From ab2d89070192d768d1edc70eb03dae099dc6fce6 Mon Sep 17 00:00:00 2001 >From: Qiu <alex@alexslomka.xyz> >Date: Mon, 14 Mar 2022 14:46:41 +0100 >Subject: [PATCH 1/1] Add `NULL` check to prevent `panic` in `mixer.c` > >--- > sys/dev/sound/pcm/mixer.c | 2 ++ > 1 file changed, 2 insertions(+) > >diff --git a/sys/dev/sound/pcm/mixer.c b/sys/dev/sound/pcm/mixer.c >index 89e78b036e9..e177db91cbf 100644 >--- a/sys/dev/sound/pcm/mixer.c >+++ b/sys/dev/sound/pcm/mixer.c >@@ -1460,6 +1460,8 @@ mixer_oss_mixerinfo(struct cdev *i_dev, oss_mixerinfo *mi) > for (i = 0; pcm_devclass != NULL && > i < devclass_get_maxunit(pcm_devclass); i++) { > d = devclass_get_softc(pcm_devclass, i); >+ if (d == NULL) >+ break; > if (PCM_DETACHING(d) || !PCM_REGISTERED(d)) > continue; > >-- >2.35.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 262671
: 232581 |
232582
|
232613