From: Takashi Iwai <tiwai@suse.de>
To: Gax-c <zichenxie0106@gmail.com>
Cc: ivan.orlov0322@gmail.com, perex@perex.cz, tiwai@suse.com,
linux-sound@vger.kernel.org, chenyuan0y@gmail.com,
zzjas98@gmail.com, stable@vger.kernel.org
Subject: Re: [PATCH v2] ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()
Date: Thu, 28 Nov 2024 08:10:45 +0100 [thread overview]
Message-ID: <875xo76dfu.wl-tiwai@suse.de> (raw)
In-Reply-To: <20241128010313.7929-1-zichenxie0106@gmail.com>
On Thu, 28 Nov 2024 02:03:14 +0100,
Gax-c wrote:
>
> From: Zichen Xie <zichenxie0106@gmail.com>
>
> 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>
> Cc: stable@vger.kernel.org
> ---
> v2: Add Fixes tag.
The v1 patch was already applied with Fixes tag.
thanks,
Takashi
prev parent reply other threads:[~2024-11-28 7:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 1:03 [PATCH v2] ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc() Gax-c
2024-11-28 7:10 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=875xo76dfu.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=chenyuan0y@gmail.com \
--cc=ivan.orlov0322@gmail.com \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=stable@vger.kernel.org \
--cc=tiwai@suse.com \
--cc=zichenxie0106@gmail.com \
--cc=zzjas98@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox