]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: at91: use devm_kasprintf() to avoid potential leaks
authorClaudiu Beznea <claudiu.beznea@microchip.com>
Fri, 3 Feb 2023 13:27:14 +0000 (15:27 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 11 Mar 2023 15:43:57 +0000 (16:43 +0100)
commit170f57774c6c066e28a363b5e5ae4da79ef0d117
tree4a06a4490e3a324b0e58c99f4d1f366ec4005871
parent1ba6cc17cbcdb87b8fb5e1fc55362920f1df8b43
pinctrl: at91: use devm_kasprintf() to avoid potential leaks

[ Upstream commit 1c4e5c470a56f7f7c649c0c70e603abc1eab15c4 ]

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: Claudiu Beznea <claudiu.beznea@microchip.com>
Link: https://lore.kernel.org/r/20230203132714.1931596-1-claudiu.beznea@microchip.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/pinctrl-at91-pio4.c
drivers/pinctrl/pinctrl-at91.c