Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373646
b: refs/heads/master
c: fdc7a9f
h: refs/heads/master
v: v3
  • Loading branch information
Axel Lin authored and Linus Walleij committed Apr 10, 2013
1 parent d146767 commit 43d8565
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 97ddb1c88b4ebe057b63346660abfee165ddd468
refs/heads/master: fdc7a9f85ab4c19acfc21e4da6ff8b7000bb686c
2 changes: 1 addition & 1 deletion trunk/drivers/gpio/gpio-lpc32xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ static int lpc32xx_of_xlate(struct gpio_chip *gc,
{
/* Is this the correct bank? */
u32 bank = gpiospec->args[0];
if ((bank > ARRAY_SIZE(lpc32xx_gpiochip) ||
if ((bank >= ARRAY_SIZE(lpc32xx_gpiochip) ||
(gc != &lpc32xx_gpiochip[bank].chip)))
return -EINVAL;

Expand Down

0 comments on commit 43d8565

Please sign in to comment.