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 stable" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]