diff options
author | FUJITA Tomonori <tomof@acm.org> | 2007-12-15 07:51:55 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2007-12-18 23:04:13 +0100 |
commit | cd81621c5c5c869b848818b506962dab4499e0d9 (patch) | |
tree | 7283dbec4bee896268ac4db10ead9baf2502e81d | |
parent | [SCSI] initio: fix conflict when loading driver (diff) | |
download | linux-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>
-rw-r--r-- | drivers/scsi/st.c | 1 |
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; } |