Skip to content

Commit

Permalink
[SCSI] st: fix kernel BUG at include/linux/scatterlist.h:59!
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
FUJITA Tomonori authored and James Bottomley committed Dec 18, 2007
1 parent 99f1f53 commit cd81621
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/scsi/st.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit cd81621

Please sign in to comment.