]> www.infradead.org Git - users/jedix/linux-maple.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>
Fri, 10 Mar 2023 08:33:59 +0000 (09:33 +0100)
commit8e8cff444ec262e200c9bcf6c034573186fe5556
treefd66311a1ef8e6f3dbd99f580e4e379aa382a9aa
parent388bcec9aa919eab8c00d80e322031428df9f7b7
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