lkml.org 
[lkml]   [2021]   [Nov]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] ALSA: missing check for possible NULL after the call to kstrdup
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

\
 
 \ /
  Last update: 2021-11-09 07:25    [W:2.571 / U:0.008 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site