diff options
author | 2024-11-26 13:24:49 -0600 | |
---|---|---|
committer | 2024-11-27 08:06:31 +0100 | |
commit | 9ad467a2b2716d4ed12f003b041aa6c776a13ff5 (patch) | |
tree | 31001d4fbc54af81ea674b3f09e7a66f6119b308 /scripts/lib/kdoc/kdoc_parser.py | |
parent | ALSA: hda: Show the codec quirk info at probing (diff) | |
download | wireguard-linux-9ad467a2b2716d4ed12f003b041aa6c776a13ff5.tar.xz wireguard-linux-9ad467a2b2716d4ed12f003b041aa6c776a13ff5.zip |
ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()
kunit_kzalloc() may return a NULL pointer, dereferencing it without
NULL check may lead to NULL dereference.
Add NULL checks for all the kunit_kzalloc() in sound_kunit.c
Fixes: 3e39acf56ede ("ALSA: core: Add sound core KUnit test")
Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241126192448.12645-1-zichenxie0106@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions