git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
53e7cac
)
gpio: mvebu: make mvchip->irqbase signed for error handling
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 7 Nov 2013 07:50:19 +0000
(10:50 +0300)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 25 Nov 2013 08:03:12 +0000
(09:03 +0100)
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.
Cc: stable@vger.kernel.org
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-mvebu.c
patch
|
blob
|
history
diff --cc
drivers/gpio/gpio-mvebu.c
Simple merge