lkml.org 
[lkml]   [2000]   [Oct]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
Subject[PATCH] Bug in scsi_merge.c
From

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 majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2005-03-22 12:39    [W:0.019 / U:1.824 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site