summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/st.c
diff options
context:
space:
mode:
authorFUJITA Tomonori <tomof@acm.org>2007-12-15 07:51:55 +0100
committerJames Bottomley <James.Bottomley@HansenPartnership.com>2007-12-18 23:04:13 +0100
commitcd81621c5c5c869b848818b506962dab4499e0d9 (patch)
tree7283dbec4bee896268ac4db10ead9baf2502e81d /drivers/scsi/st.c
parent[SCSI] initio: fix conflict when loading driver (diff)
downloadlinux-cd81621c5c5c869b848818b506962dab4499e0d9.tar.xz
linux-cd81621c5c5c869b848818b506962dab4499e0d9.zip
[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 <fujita.tomonori@lab.ntt.co.jp> Cc: Kai Makisara <Kai.Makisara@kolumbus.fi> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers/scsi/st.c')
-rw-r--r--drivers/scsi/st.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/st.c b/drivers/scsi/st.c
index 98dfd6ea209c..328c47c6aeb1 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;
}