diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-11-08 22:56:37 -0500 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.(none)> | 2006-11-09 20:01:42 -0500 |
commit | 05052f7f130b1232faeee1674a5bc41f67746cff (patch) | |
tree | dd316ac2737a203f005d8e4d01d64f065faa5913 /drivers/scsi/psi240i.c | |
parent | 107e716b3487df5e2940ebe3338d935306efc78b (diff) |
[SCSI] psi240i.c: fix an array overrun
Fix an array overrun spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/psi240i.c')
-rw-r--r-- | drivers/scsi/psi240i.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/psi240i.c b/drivers/scsi/psi240i.c index ac0419e2714a..899e89d6fe67 100644 --- a/drivers/scsi/psi240i.c +++ b/drivers/scsi/psi240i.c | |||
@@ -328,7 +328,7 @@ static void Irq_Handler (int irq, void *dev_id) | |||
328 | pinquiryData->AdditionalLength = 35 - 4; | 328 | pinquiryData->AdditionalLength = 35 - 4; |
329 | 329 | ||
330 | // Fill in vendor identification fields. | 330 | // Fill in vendor identification fields. |
331 | for ( z = 0; z < 20; z += 2 ) | 331 | for ( z = 0; z < 8; z += 2 ) |
332 | { | 332 | { |
333 | pinquiryData->VendorId[z] = ((UCHAR *)identifyData.ModelNumber)[z + 1]; | 333 | pinquiryData->VendorId[z] = ((UCHAR *)identifyData.ModelNumber)[z + 1]; |
334 | pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z]; | 334 | pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z]; |