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: http://review.tizen.org/git/?a=commitdiff_plain;h=cd81621c5c5c869b848818b506962dab4499e0d9;p=platform%2Fkernel%2Flinux-3.10.git [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 98dfd6e..328c47c 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; }