Commit a8d52de0 authored by Ma Ke's avatar Ma Ke Committed by Greg Kroah-Hartman
Browse files

pinctrl: stm32: check devm_kasprintf() returned value



[ Upstream commit b0f0e3f0 ]

devm_kasprintf() can return a NULL pointer on failure but this returned
value is not checked. Fix this lack and check the returned value.

Found by code review.

Cc: stable@vger.kernel.org
Fixes: 32c170ff ("pinctrl: stm32: set default gpio line names using pin names")
Signed-off-by: default avatarMa Ke <make24@iscas.ac.cn>
Link: https://lore.kernel.org/20240906100326.624445-1-make24@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 1a1cfd14
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment