Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Adrian Bunk and committed by
James Bottomley
05052f7f 107e716b

+1 -1
+1 -1
drivers/scsi/psi240i.c
··· 328 328 pinquiryData->AdditionalLength = 35 - 4; 329 329 330 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 333 pinquiryData->VendorId[z] = ((UCHAR *)identifyData.ModelNumber)[z + 1]; 334 334 pinquiryData->VendorId[z + 1] = ((UCHAR *)identifyData.ModelNumber)[z];