]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] advansys.c buffer overflow
authorRik van Riel <riel@conectiva.com.br>
Thu, 21 Nov 2002 06:47:05 +0000 (22:47 -0800)
committerLinus Torvalds <torvalds@penguin.transmeta.com>
Thu, 21 Nov 2002 06:47:05 +0000 (22:47 -0800)
The Stanford checker found an error in advansys.c, the driver
is accessing field 6 in an array[6].  Since this is the only
place where this field is accessed it should be safe to simply
remove this line.

drivers/scsi/advansys.c

index cf648b97736f2c1038a00bfae8ee004215b0b051..62861124c1f5ba652b418b1469cf28bc34fa57c7 100644 (file)
@@ -5097,7 +5097,6 @@ advansys_detect(Scsi_Host_Template *tpnt)
                 ep->adapter_info[3] = asc_dvc_varp->cfg->adapter_info[3];
                 ep->adapter_info[4] = asc_dvc_varp->cfg->adapter_info[4];
                 ep->adapter_info[5] = asc_dvc_varp->cfg->adapter_info[5];
-                ep->adapter_info[6] = asc_dvc_varp->cfg->adapter_info[6];
 
                /*
                 * Modify board configuration.