git://ftp.safe.ca
/
safe
/
jmp
/
linux-2.6
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
pl061: fix offset value range checking
[safe/jmp/linux-2.6]
/
drivers
/
gpio
/
pl061.c
diff --git
a/drivers/gpio/pl061.c
b/drivers/gpio/pl061.c
index
105701a
..
ee568c8
100644
(file)
--- a/
drivers/gpio/pl061.c
+++ b/
drivers/gpio/pl061.c
@@
-164,7
+164,7
@@
static int pl061_irq_type(unsigned irq, unsigned trigger)
unsigned long flags;
u8 gpiois, gpioibe, gpioiev;
- if (offset < 0 || offset > PL061_GPIO_NR)
+ if (offset < 0 || offset >
=
PL061_GPIO_NR)
return -EINVAL;
spin_lock_irqsave(&chip->irq_lock, flags);