Re: [PATCH] pinctrl: nuvoton: npcm8xx: Add NULL check in npcm8xx_gpio_fw

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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





[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux