Re: [PATCH] gpio: syscon: Fix possible NULL ptr usage

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

 



On Thu, Oct 4, 2018 at 12:52 AM Marek Vasut <marex@xxxxxxx> wrote:

> The priv->data->set can be NULL while flags contains GPIO_SYSCON_FEAT_OUT
> and chip->set is valid pointer. This happens in case the controller uses
> the default GPIO setter. Always use chip->set to access the setter to avoid
> possible NULL pointer dereferencing.
>
> Signed-off-by: Marek Vasut <marex@xxxxxxx>

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