mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
snd_ctl_new1() can return NULL when memory allocation fails. In
layout.c, the function does not check the return value before
dereferencing ctl->id.name or passing to aoa_snd_ctl_add(), which can
lead to a NULL pointer dereference.
Add NULL checks after snd_ctl_new1() calls and return early if any
fails.
Assisted-by: Opencode:DeepSeek-V4-Flash
Cc: stable@vger.kernel.org
Fixes:
|
||
|---|---|---|
| .. | ||
| codecs | ||
| core | ||
| fabrics | ||
| soundbus | ||
| aoa-gpio.h | ||
| aoa.h | ||
| Kconfig | ||
| Makefile | ||