lkml.org 
[lkml]   [2017]   [Nov]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value
From
Date

On 11/23/2017 03:37 AM, Linus Walleij wrote:
> On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva
> <garsilva@embeddedor.com> wrote:
>
>> Check return value from call to devm_kzalloc() in order to prevent
>> a NULL pointer dereference.
>>
>> This issue was detected with the help of Coccinelle.
>>
>> Fixes: b2e63555592f ("i2c: gpio: Convert to use descriptors")
>> Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>

Thank you, Linus.

--
Gustavo A. R. Silva

\
 
 \ /
  Last update: 2017-11-27 13:59    [W:0.052 / U:36.352 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site