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)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 6 Feb 2023 11:11:51 +0000 (12:11 +0100)
commit1c4e5c470a56f7f7c649c0c70e603abc1eab15c4
tree745c9258a797802b4dc99d2f0345922b1a33b7db
parent4b6b185599273ecf980e3892006a7a29c5ad653b
pinctrl: at91: use devm_kasprintf() to avoid potential leaks

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>
drivers/pinctrl/pinctrl-at91-pio4.c
drivers/pinctrl/pinctrl-at91.c