Re: [PATCH] pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw
From: Linus Walleij
Date: Fri Feb 14 2025 - 05:25:39 EST
On Wed, Feb 12, 2025 at 11:05 AM Charles Han <hanchunchao@xxxxxxxxxx> 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@xxxxxxxxxx>
Patch applied.
Yours,
Linus Walleij