Commit 02db4079 authored by Adrian Bunk's avatar Adrian Bunk

drivers/scsi/psi240i.c: fix an array overrun

This patch fixes an array overrun spotted by the Coverity checker.
Signed-off-by: default avatarAdrian Bunk <bunk@stusta.de>
parent 9d41b6ad
...@@ -329,7 +329,7 @@ static void Irq_Handler (int irq, void *dev_id, struct pt_regs *regs) ...@@ -329,7 +329,7 @@ static void Irq_Handler (int irq, void *dev_id, struct pt_regs *regs)
pinquiryData->AdditionalLength = 35 - 4; pinquiryData->AdditionalLength = 35 - 4;
// Fill in vendor identification fields. // 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] = ((UCHAR *)identifyData.ModelNumber)[z + 1];
pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z]; pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment