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:
31a1440
)
cdrom: beyond ARRAY_SIZE of viocd_diskinfo
author
Roel Kluin
<roel.kluin@gmail.com>
Wed, 20 May 2009 06:42:06 +0000
(08:42 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 20 May 2009 06:42:06 +0000
(08:42 +0200)
Do not go beyond ARRAY_SIZE of viocd_diskinfo
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/cdrom/viocd.c
patch
|
blob
|
history
diff --git
a/drivers/cdrom/viocd.c
b/drivers/cdrom/viocd.c
index
1392935
..
9b1624e
100644
(file)
--- a/
drivers/cdrom/viocd.c
+++ b/
drivers/cdrom/viocd.c
@@
-587,7
+587,7
@@
static int viocd_probe(struct vio_dev *vdev, const struct vio_device_id *id)
struct device_node *node = vdev->dev.archdata.of_node;
deviceno = vdev->unit_address;
- if (deviceno > VIOCD_MAX_CD)
+ if (deviceno >
=
VIOCD_MAX_CD)
return -ENODEV;
if (!node)
return -ENODEV;