linux/drivers/pinctrl/nuvoton
Charles Han a585f6ea42 pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
[ Upstream commit acf40ab427 ]

devm_kasprintf() calls can return null pointers on failure.
But the return values were not checked in npcm8xx_gpio_fw().
Add NULL check in npcm8xx_gpio_fw(), to handle kernel NULL
pointer dereference error.

Fixes: acf4884a57 ("pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver")
Signed-off-by: Charles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/20250212100532.4317-1-hanchunchao@inspur.com
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-03-22 12:54:09 -07:00
..
Kconfig pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver 2024-06-17 09:22:03 +02:00
Makefile pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver 2024-06-17 09:22:03 +02:00
pinctrl-ma35.c pinctrl: nuvoton: fix a double free in ma35_pinctrl_dt_node_to_map_func() 2024-10-11 21:54:58 +02:00
pinctrl-ma35.h pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver 2024-06-17 09:22:03 +02:00
pinctrl-ma35d1.c pinctrl: nuvoton: Add ma35d1 pinctrl and GPIO driver 2024-06-17 09:22:03 +02:00
pinctrl-npcm7xx.c pinctrl: npcm7xx: prevent glitch when setting the GPIO to output high 2023-11-24 11:22:11 +01:00
pinctrl-npcm8xx.c pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw 2025-03-22 12:54:09 -07:00
pinctrl-wpcm450.c pinctrl: nuvoton: Constify wpcm450_groups 2024-02-07 11:46:02 +01:00