mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Austin Kim <austindh.kim@gmail.com>
Cc: tiwai@suse.com, perex@perex.cz, alsa-devel@alsa-project.org,
	linux-kernel@vger.kernel.org, austin.kim@lge.com
Subject: Re: [PATCH] ALSA: missing check for possible NULL after the call to kstrdup
Date: Tue, 09 Nov 2021 07:24:25 +0100	[thread overview]
Message-ID: <s5h5yt1c0di.wl-tiwai@suse.de> (raw)
In-Reply-To: <20211109003742.GA5423@raspberrypi>

On Tue, 09 Nov 2021 01:37:42 +0100,
Austin Kim wrote:
> 
> From: Austin Kim <austin.kim@lge.com>
> 
> If kcalloc() return NULL due to memory starvation, it is possible for 
> kstrdup() to return NULL in similar case. So add null check after the call 
> to kstrdup() is made.
> 
> Signed-off-by: Austin Kim <austin.kim@lge.com>

Thanks, applied now with a minor coding-style fix (we need no extra
parentheses), the correction of the subject line with the proper
prefix, and the addition of Cc-to-stable.


Takashi

  reply	other threads:[~2021-11-09  6:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-09  0:37 Austin Kim
2021-11-09  6:24 ` Takashi Iwai [this message]
2021-11-09  8:20   ` Austin Kim

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=s5h5yt1c0di.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=alsa-devel@alsa-project.org \
    --cc=austin.kim@lge.com \
    --cc=austindh.kim@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.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

all inboxes | Powered by JetHome®