]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] FlashPoint: fix off-by-one errors
authorAdrian Bunk <bunk@kernel.org>
Wed, 23 Apr 2008 09:51:10 +0000 (12:51 +0300)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 27 Apr 2008 17:19:55 +0000 (12:19 -0500)
commitb5740f38c25bf867242e9297400f2c0473046d16
treeed545c51f083c8470830b008ea71fd5f2454b643
parent3cff7982d1755af64e2e344c21e1bacd2026a61f
[SCSI] FlashPoint: fix off-by-one errors

This patch fixes off-by-one errors in error checks (the variables are
used as array indexes for arrays with MAX_SCSI_TAR resp. MAX_LUN
elements) spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/FlashPoint.c