Re: [PATCH] pinctrl: stm32: Add check for devm_kcalloc

From: Linus Walleij
Date: Mon Nov 13 2023 - 09:13:11 EST


On Tue, Oct 31, 2023 at 9:09 AM Chen Ni <nichen@xxxxxxxxxxx> wrote:

> Add check for the return value of devm_kcalloc() and return the error
> if it fails in order to avoid NULL pointer dereference.
>
> Fixes: 32c170ff15b0 ("pinctrl: stm32: set default gpio line names using pin names")
> Signed-off-by: Chen Ni <nichen@xxxxxxxxxxx>

Patch applied.

Yours,
Linus Walleij