Commit 690450ec authored by Claudiu Beznea's avatar Claudiu Beznea Committed by sanglipeng
Browse files

pinctrl: at91: use devm_kasprintf() to avoid potential leaks

stable inclusion
from stable-v5.10.173
commit ca64ebcb45019a1f80c16c4824b4493fa0c24dca
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8BFR3

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=ca64ebcb45019a1f80c16c4824b4493fa0c24dca



--------------------------------

[ Upstream commit 1c4e5c47 ]

Use devm_kasprintf() instead of kasprintf() to avoid any potential
leaks. At the moment drivers have no remove functionality thus
there is no need for fixes tag.

Signed-off-by: default avatarClaudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230203132714.1931596-1-claudiu.beznea@microchip.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 58393abe
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment