diff options
author | Zichen Xie <zichenxie0106@gmail.com> | 2024-11-26 22:24:49 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2024-11-27 10:06:31 +0300 |
commit | 9ad467a2b2716d4ed12f003b041aa6c776a13ff5 (patch) | |
tree | 31001d4fbc54af81ea674b3f09e7a66f6119b308 /rust/helpers/build_bug.c | |
parent | db2eee61434808d66233a9d3ea5ec31b8867de23 (diff) | |
download | linux-9ad467a2b2716d4ed12f003b041aa6c776a13ff5.tar.xz |
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 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions