Re: Linux 2.3.99pre9-2 JOB list

From: Robert de Vries (rhdv@rhdv.cistron.nl)
Date: Sun May 21 2000 - 09:40:02 EST


On Thu, 18 May 2000, Robert de Vries wrote:

> On Thu, 18 May 2000, Alan Cox wrote:
>
> > To Check
> > --------
> > BusLogic crashes when you cat /proc/scsi/BusLogic/0
>
This fixes it.

        Robert

Index: drivers/scsi/BusLogic.c
===================================================================
RCS file: /home/cvs/linux/drivers/scsi/BusLogic.c,v
retrieving revision 1.1
diff -u -r1.1 BusLogic.c
--- drivers/scsi/BusLogic.c 2000/01/30 21:21:25 1.1
+++ drivers/scsi/BusLogic.c 2000/05/21 14:37:13
@@ -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;
 }
 

-- 
Robert de Vries
rhdv@rhdv.cistron.nl

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Tue May 23 2000 - 21:00:19 EST