[SCSI] fix scsi_device_types overrun in scsi.c
authorEric Sesterhenn <snakebyte@gmx.de>
Tue, 26 Sep 2006 11:22:13 +0000 (13:22 +0200)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 1 Oct 2006 20:04:48 +0000 (15:04 -0500)
commit80c6e3c0b5eb855b69270658318f5ccf04d7b1ff
treeb4d707c023e84b5a783057e3538e1b8921d8c5ee
parent7b75b990e3cb33fd529640d589e77950e72a607c
[SCSI] fix scsi_device_types overrun in scsi.c

this overrun was spotted by coverity (cid #1403).

If type == ARRAY_SIZE(scsi_device_types), we are off by one.

Signed-off-by: Eric Sesterhenn <snakebyte@gmx.de>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi.c