[PATCH] pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
Linus Walleij
linus.walleij at linaro.org
Fri Feb 14 21:25:15 AEDT 2025
On Wed, Feb 12, 2025 at 11:05 AM Charles Han <hanchunchao at inspur.com> wrote:
> 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: acf4884a5717 ("pinctrl: nuvoton: add NPCM8XX pinctrl and GPIO driver")
> Signed-off-by: Charles Han <hanchunchao at inspur.com>
Patch applied.
Yours,
Linus Walleij
More information about the openbmc
mailing list