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]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux