projects
/
platform
/
kernel
/
linux-3.10.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
baadac8
)
i2c-amd756: Fix off-by-one
author
Adrian Bunk
<bunk@kernel.org>
Wed, 12 Mar 2008 13:15:00 +0000
(14:15 +0100)
committer
Jean Delvare
<khali@hyperion.delvare>
Wed, 12 Mar 2008 13:15:00 +0000
(14:15 +0100)
This patch fixes an off-by-one error spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/i2c/busses/i2c-amd756.c
patch
|
blob
|
history
diff --git
a/drivers/i2c/busses/i2c-amd756.c
b/drivers/i2c/busses/i2c-amd756.c
index
573abe4
..
2fa4318
100644
(file)
--- a/
drivers/i2c/busses/i2c-amd756.c
+++ b/
drivers/i2c/busses/i2c-amd756.c
@@
-335,7
+335,7
@@
static int __devinit amd756_probe(struct pci_dev *pdev,
u8 temp;
/* driver_data might come from user-space, so check it */
- if (id->driver_data > ARRAY_SIZE(chipname))
+ if (id->driver_data >
=
ARRAY_SIZE(chipname))
return -EINVAL;
if (amd756_ioport) {