Skip to content
Commit acf40ab4 authored by Charles Han's avatar Charles Han Committed by Linus Walleij
Browse files

pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw



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: acf4884a ("pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver")
Signed-off-by: default avatarCharles Han <hanchunchao@inspur.com>
Link: https://lore.kernel.org/20250212100532.4317-1-hanchunchao@inspur.com


Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 68283c1c
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment