From: FUJITA Tomonori Date: Sat, 15 Dec 2007 06:51:55 +0000 (+0900) Subject: [SCSI] st: fix kernel BUG at include/linux/scatterlist.h:59! X-Git-Tag: v2.6.24-rc6~15^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cd81621c5c5c869b848818b506962dab4499e0d9;p=linux-2.6 [SCSI] st: fix kernel BUG at include/linux/scatterlist.h:59! This is caused by a missing scatterlist initialisation (it only shows up when sg list handling debugging is turned on). Signed-off-by: FUJITA Tomonori Cc: Kai Makisara Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c index 98dfd6ea20..328c47c6ae 100644 --- a/drivers/scsi/st.c +++ b/drivers/scsi/st.c @@ -3611,6 +3611,7 @@ static struct st_buffer * tb->dma = need_dma; tb->buffer_size = got; + sg_init_table(tb->sg, max_sg); return tb; }