[Linux-stm32] [PATCH] pinctrl: stm32: Add check for devm_kcalloc

Linus Walleij linus.walleij at linaro.org
Mon Nov 13 14:12:56 UTC 2023


On Tue, Oct 31, 2023 at 9:09 AM Chen Ni <nichen at iscas.ac.cn> 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 at iscas.ac.cn>

Patch applied.

Yours,
Linus Walleij



More information about the Linux-stm32 mailing list