[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)
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>

No differences found