Re: [PATCH v2] ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



On Thu, 28 Nov 2024 02:03:14 +0100,
Gax-c wrote:
> 
> From: Zichen Xie <zichenxie0106@xxxxxxxxx>
> 
> 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@xxxxxxxxx>
> Cc: stable@xxxxxxxxxxxxxxx
> ---
> v2: Add Fixes tag.

The v1 patch was already applied with Fixes tag.


thanks,

Takashi




[Index of Archives]     [Pulseaudio]     [Linux Audio Users]     [ALSA Devel]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux