patch-1.3.100 linux/drivers/scsi/aha152x.c

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

diff -u --recursive --new-file v1.3.99/linux/drivers/scsi/aha152x.c linux/drivers/scsi/aha152x.c
@@ -1220,9 +1220,9 @@
     info_array[1]=32;
     info_array[2]=disk->capacity / (64 * 32);
   } else {
-    info_array[0] = 256;
+    info_array[0] = 255;
     info_array[1] = 63;
-    info_array[2] = disk->capacity / (256 * 63);
+    info_array[2] = disk->capacity / (255 * 63);
     if(info_array[2] > 1023)
       info_array[2]=1023;
   }

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov with Sam's (original) version
of this