diff options
| author | 2026-06-07 15:42:19 +0800 | |
|---|---|---|
| committer | 2026-06-07 11:45:03 +0200 | |
| commit | 422e42b7c2b882ba1d16d4afc8891bcea7c4de93 (patch) | |
| tree | 66822a70229e3acb3b36ca8e1f552c9171aa6ef5 /tools/lib/python/kdoc/python_version.py | |
| parent | Merge branch 'for-linus' into for-next (diff) | |
ALSA: es18xx: check control allocation before private data setup
snd_es18xx_mixer() creates controls with snd_ctl_new1() and then stores
bookkeeping pointers or sets private_free before calling snd_ctl_add().
snd_ctl_new1() can return NULL on allocation failure, so those writes
can dereference a NULL control pointer.
Check the returned control pointers before using them and return -ENOMEM
on allocation failure.
Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com>
Link: https://patch.msgid.link/20260607074219.3-1-ruoyuw560@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc/python_version.py')
0 files changed, 0 insertions, 0 deletions
