patch-2.4.17 linux/drivers/scsi/BusLogic.c
Next file: linux/drivers/scsi/Config.in
Previous file: linux/drivers/pcmcia/yenta.c
Back to the patch index
Back to the overall index
- Lines: 9
- Date:
Fri Dec 21 16:40:32 2001
- Orig file:
linux-2.4.16/drivers/scsi/BusLogic.c
- Orig date:
Sun Sep 30 19:26:07 2001
diff -Naur -X /home/marcelo/lib/dontdiff linux-2.4.16/drivers/scsi/BusLogic.c linux/drivers/scsi/BusLogic.c
@@ -4131,7 +4131,7 @@
/*
Attempt to read the first 1024 bytes from the disk device.
*/
- BufferHead = bread(MKDEV(MAJOR(Device), MINOR(Device) & ~0x0F), 0, 1024);
+ BufferHead = bread(MKDEV(MAJOR(Device), MINOR(Device) & ~0x0F), 0, block_size(Device));
if (BufferHead == NULL) return 0;
/*
If the boot sector partition table flag is valid, search for a partition
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)