projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2d8ae63
)
tape: beyond ARRAY_SIZE of viocd_diskinfo
author
roel kluin
<roel.kluin@gmail.com>
Tue, 19 May 2009 14:58:56 +0000
(14:58 +0000)
committer
Benjamin Herrenschmidt
<benh@kernel.crashing.org>
Tue, 2 Jun 2009 00:32:34 +0000
(10:32 +1000)
Do not go beyond ARRAY_SIZE of tape_device and viotape_unitinfo
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Acked-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/viotape.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/char/viotape.c
b/drivers/char/viotape.c
index ffc9254f7e029d26c7cd0d0d38f75d7f32570e2c..042c8149a6d12248cdbbf2e212628cf497f8f1ea 100644
(file)
--- a/
drivers/char/viotape.c
+++ b/
drivers/char/viotape.c
@@
-867,7
+867,7
@@
static int viotape_probe(struct vio_dev *vdev, const struct vio_device_id *id)
int j;
struct device_node *node = vdev->dev.archdata.of_node;
- if (i > VIOTAPE_MAX_TAPE)
+ if (i >
=
VIOTAPE_MAX_TAPE)
return -ENODEV;
if (!node)
return -ENODEV;