patch-2.3.99-pre9 linux/drivers/scsi/BusLogic.c
Next file: linux/drivers/scsi/aha152x.c
Previous file: linux/drivers/s390/block/dasd_proc.c
Back to the patch index
Back to the overall index
- Lines: 10
- Date:
Sun May 21 11:38:47 2000
- Orig file:
v2.3.99-pre8/linux/drivers/scsi/BusLogic.c
- Orig date:
Wed Dec 29 13:13:18 1999
diff -u --recursive --new-file v2.3.99-pre8/linux/drivers/scsi/BusLogic.c linux/drivers/scsi/BusLogic.c
@@ -4354,7 +4354,8 @@
HostAdapter, Length, BusLogic_MessageBufferSize);
if ((Length -= Offset) <= 0) return 0;
if (Length >= BytesAvailable) Length = BytesAvailable;
- *StartPointer = &HostAdapter->MessageBuffer[Offset];
+ memcpy(ProcBuffer, HostAdapter->MessageBuffer + Offset, Length);
+ *StartPointer = ProcBuffer;
return Length;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)