Re: [patch] gpio: mvebu: make mvchip->irqbase signed for error handling

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

 



On Thu, Nov 7, 2013 at 8:50 AM, Dan Carpenter <dan.carpenter@xxxxxxxxxx> wrote:

> There is a bug in mvebu_gpio_probe() where we do:
>
>         mvchip->irqbase = irq_alloc_descs(-1, 0, ngpios, -1);
>         if (mvchip->irqbase < 0) {
>
> The problem is that mvchip->irqbase is unsigned so the error handling
> doesn't work.  I have changed it to be a regular int.
>
> Signed-off-by: Dan Carpenter <dan.carpenter@xxxxxxxxxx>

Applied to fixes.

I'm tagging this for stable as well.

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




[Index of Archives]     [Kernel Development]     [Kernel Announce]     [Kernel Newbies]     [Linux Networking Development]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Device Mapper]

  Powered by Linux