Linux Sound subsystem development
 help / color / mirror / Atom feed
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
Subject: Re: [PATCH] ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc()
Date: Wed, 27 Nov 2024 08:09:49 +0100	[thread overview]
Message-ID: <87serd9mpu.wl-tiwai@suse.de> (raw)
In-Reply-To: <20241126192448.12645-1-zichenxie0106@gmail.com>

On Tue, 26 Nov 2024 20:24:49 +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
> 
> Signed-off-by: Zichen Xie <zichenxie0106@gmail.com>

Thanks, applied now with Fixes tag.


Takashi

      reply	other threads:[~2024-11-27  7:09 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-26 19:24 [PATCH] ALSA: core: Fix possible NULL dereference caused by kunit_kzalloc() Gax-c
2024-11-27  7:09 ` 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=87serd9mpu.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=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