Commit 1a1cfd14 authored by Chen Ni's avatar Chen Ni Committed by Greg Kroah-Hartman
Browse files

pinctrl: stm32: Add check for devm_kcalloc



[ Upstream commit b0eeba52 ]

Add check for the return value of devm_kcalloc() and return the error
if it fails in order to avoid NULL pointer dereference.

Fixes: 32c170ff ("pinctrl: stm32: set default gpio line names using pin names")
Signed-off-by: default avatarChen Ni <nichen@iscas.ac.cn>
Acked-by: default avatarValentin Caron <valentin.caron@foss.st.com>
Link: https://lore.kernel.org/r/20231031080807.3600656-1-nichen@iscas.ac.cn


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Stable-dep-of: 451bc9ae ("pinctrl: stm32: Add check for clk_enable()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 75285cb2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment