Re: [PATCH 1/2] gpiolib: irqchip: use irq_find_mapping while removing irqchip

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

 



On Thu, Sep 25, 2014 at 6:09 PM, Grygorii Strashko
<grygorii.strashko@xxxxxx> wrote:

> There is no guarantee that VIRQs will be allocated sequentially
> for gpio irqchip in gpiochip_irqchip_add().
> Therefore, it's unsafe to dispose VIRQ in gpiochip_irqchip_remove()
> basing on index relatively to stored irq_base value.
>
> Hence, use irq_find_mapping for VIRQ finding  in gpiochip_irqchip_remove()
> instead of irq_base + index.
>
> Reported-by: Wang, Yalin <Yalin.Wang@xxxxxxxxxxxxxx>
> Signed-off-by: Grygorii Strashko <grygorii.strashko@xxxxxx>

Patch applied.

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