Skip to content
Snippets Groups Projects
Commit 9ad467a2 authored by Zichen Xie's avatar Zichen Xie Committed by Takashi Iwai
Browse files

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: 3e39acf5 ("ALSA: core: Add sound core KUnit test")
Signed-off-by: default avatarZichen Xie <zichenxie0106@gmail.com>
Link: https://patch.msgid.link/20241126192448.12645-1-zichenxie0106@gmail.com


Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent db2eee61
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment