Hi,

I was chasing up why sparc32 raid is breaking and I noticed a problem with
__init_io - We do not memset the entire buffer. This should fix it.

Cheers
Anton

diff -ru linux/drivers/scsi/scsi_merge.c linux_sparc32/drivers/scsi/scsi_merge.c
--- linux/drivers/scsi/scsi_merge.c     Wed Apr 26 19:36:32 2000
+++ linux_sparc32/drivers/scsi/scsi_merge.c     Wed Oct 11 20:48:15 2000
@@ -869,7 +869,7 @@
         * Next, walk the list, and fill in the addresses and sizes of
         * each segment.
         */
-       memset(sgpnt, 0, SCpnt->use_sg * sizeof(struct scatterlist));
+       memset(sgpnt, 0, SCpnt->sglist_len);
        SCpnt->request_buffer = (char *) sgpnt;
        SCpnt->request_bufflen = 0;
        bhprev = NULL;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
Please read the FAQ at http://www.tux.org/lkml/

Reply via email to