Re: [PATCH] mfd: sm501: Add NULL check on devm_kzalloc return value
From: Linus Walleij
Date: Thu Nov 23 2017 - 04:38:05 EST
On Thu, Nov 23, 2017 at 4:50 AM, Gustavo A. R. Silva
<garsilva@xxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx>
Acked-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
Yours,
Linus Walleij