patch-2.4.14 linux/drivers/scsi/gdth.c

Next file: linux/drivers/scsi/gvp11.c
Previous file: linux/drivers/scsi/fastlane.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.13/linux/drivers/scsi/gdth.c linux/drivers/scsi/gdth.c
@@ -4574,7 +4574,7 @@
     Scsi_Device     sdev;
 #endif
     char            cmnd[MAX_COMMAND_SIZE];   
-    memset(cmnd, 0xff, 12);
+    memset(cmnd, 0xff, MAX_COMMAND_SIZE);
 
     TRACE2(("gdth_flush() hanum %d\n",hanum));
     ha = HADATA(gdth_ctr_tab[hanum]);
@@ -4652,7 +4652,7 @@
 
 #ifndef __alpha__
         /* controller reset */
-        memset(cmnd, 0xff, 12);
+        memset(cmnd, 0xff, MAX_COMMAND_SIZE);
 #if LINUX_VERSION_CODE >= 0x020322
         sdev = scsi_get_host_dev(gdth_ctr_tab[hanum]);
         scp  = scsi_allocate_device(sdev, 1, FALSE);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)