commit 05052f7f130b1232faeee1674a5bc41f67746cff
tree dd316ac2737a203f005d8e4d01d64f065faa5913
parent 107e716b3487df5e2940ebe3338d935306efc78b
author Adrian Bunk <[EMAIL PROTECTED]> 1163044597 -0800
committer James Bottomley <[EMAIL PROTECTED](none)> 1163120502 +0900

[SCSI] psi240i.c: fix an array overrun

Fix an array overrun spotted by the Coverity checker.

Signed-off-by: Adrian Bunk <[EMAIL PROTECTED]>
Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
Signed-off-by: James Bottomley <[EMAIL PROTECTED]>

 drivers/scsi/psi240i.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/scsi/psi240i.c b/drivers/scsi/psi240i.c
index ac0419e..899e89d 100644
--- a/drivers/scsi/psi240i.c
+++ b/drivers/scsi/psi240i.c
@@ -328,7 +328,7 @@ static void Irq_Handler (int irq, void *
                                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];
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to