Re: [PATCH] ALSA: missing check for possible NULL after the call to kstrdup

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 09 Nov 2021 01:37:42 +0100,
Austin Kim wrote:
> 
> From: Austin Kim <austin.kim@xxxxxxx>
> 
> 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@xxxxxxx>

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



[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Pulse Audio]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux