Re: [PATCH] gpio: Fix potentially NULL handler data passed to chained irqchip handler

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

 



On Tue, Sep 16, 2014 at 3:23 PM, Jarkko Nikula
<jarkko.nikula@xxxxxxxxxxxxxxx> wrote:

> There is possibility with misconfigured pins that interrupt occurs instantly
> after setting irq_set_chained_handler() in gpiochip_set_chained_irqchip().
> Now if handler gets called before irq_set_handler_data() the handler gets
> NULL handler data.
>
> Fix this by moving irq_set_handler_data() call before
> irq_set_chained_handler() in gpiochip_set_chained_irqchip().
>
> Signed-off-by: Jarkko Nikula <jarkko.nikula@xxxxxxxxxxxxxxx>
> Cc: Stable <stable@xxxxxxxxxxxxxxx> # 3.15+

Patch applied for fixes with Alex's review tag.

Yours,
Linus Walleij
--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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