diff options
author | Adrian Bunk <bunk@stusta.de> | 2006-11-20 00:15:06 +0100 |
---|---|---|
committer | Adrian Bunk <bunk@stusta.de> | 2006-11-20 00:15:06 +0100 |
commit | 02db407979ff96eb7b619d3683155e5298021908 (patch) | |
tree | 9c04e302e2710326ce3fee0bcac6d31d8949f3cd /drivers/scsi | |
parent | 9d41b6ad6669529146a588fae30af28ab4443450 (diff) |
drivers/scsi/psi240i.c: fix an array overrun
This patch fixes an array overrun spotted by the Coverity checker.
Signed-off-by: Adrian Bunk <bunk@stusta.de>
Diffstat (limited to 'drivers/scsi')
-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 5c2cdf523c3b..76972b44f83a 100644 --- a/drivers/scsi/psi240i.c +++ b/drivers/scsi/psi240i.c @@ -329,7 +329,7 @@ static void Irq_Handler (int irq, void *dev_id, struct pt_regs *regs) pinquiryData->AdditionalLength = 35 - 4; // Fill in vendor identification fields. - for ( z = 0; z < 20; z += 2 ) + for ( z = 0; z < 8; z += 2 ) { pinquiryData->VendorId[z] = ((UCHAR *)identifyData.ModelNumber)[z + 1]; pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z]; |