From: Jeffin Philip <jeffinphilip14@gmail.com>
To: syzbot+b7fe2760ea6f1ee44b4d@syzkaller.appspotmail.com
Cc: linux-kernel@vger.kernel.org, linux-sound@vger.kernel.org,
syzkaller-bugs@googlegroups.com
Subject: [syzbot] [sound?] BUG: unable to handle kernel NULL pointer dereference in snd_ctl_led_get
Date: Thu, 27 Aug 2026 16:13:06 +0530 [thread overview]
Message-ID: <20260827104306.21231-1-jeffinphilip14@gmail.com> (raw)
In-Reply-To: <6a9007b3.1d9ded08.62e62.00cd.GAE@google.com>
#syz test: upstream 818bebeb63dd
diff --git a/sound/core/control_led.c b/sound/core/control_led.c
index 8cbacee57ce7..f6a46ed97d37 100644
--- a/sound/core/control_led.c
+++ b/sound/core/control_led.c
@@ -114,13 +114,11 @@ static int snd_ctl_led_get(struct snd_ctl_led_ctl *lctl)
info.id = kctl->id;
info.id.index += lctl->index_offset;
info.id.numid += lctl->index_offset;
- result = kctl->info(kctl, &info);
- if (result < 0)
+ if (!kctl->info || kctl->info(kctl, &info))
return -1;
memset(&value, 0, sizeof(value));
value.id = info.id;
- result = kctl->get(kctl, &value);
- if (result < 0)
+ if (!kctl->get || kctl->get(kctl, &value))
return -1;
if (info.type == SNDRV_CTL_ELEM_TYPE_BOOLEAN ||
info.type == SNDRV_CTL_ELEM_TYPE_INTEGER) {
next prev parent reply other threads:[~2026-08-27 10:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-27 9:47 syzbot
2026-08-27 10:28 ` Jeffin Philip
2026-08-27 10:42 ` syzbot
2026-08-27 10:43 ` Jeffin Philip [this message]
2026-08-27 10:59 ` syzbot
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260827104306.21231-1-jeffinphilip14@gmail.com \
--to=jeffinphilip14@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=syzbot+b7fe2760ea6f1ee44b4d@syzkaller.appspotmail.com \
--cc=syzkaller-bugs@googlegroups.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®