]> err.no Git - linux-2.6/commit
Initialise scatter/gather list in sg driver
authorAnton Blanchard <anton@samba.org>
Fri, 26 Oct 2007 12:00:14 +0000 (14:00 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 29 Oct 2007 08:18:03 +0000 (09:18 +0100)
commit30fa0d0f0c0ab2aa0d4c2f88eda49eaa19ea6f8d
tree1d6ef70f9e3b512c34c5ae7082eccf8464801f43
parentacd054a5ef401e03e0047b487e572442614f81e5
Initialise scatter/gather list in sg driver

After turning on DEBUG_SG I hit a fail:

kernel BUG at include/linux/scatterlist.h:50!

sg_build_indirect
sg_build_reserve
sg_open
chrdev_open
__dentry_open
do_filp_open
do_sys_open

We should initialise the sg list when we allocate it in sg_build_sgat.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
drivers/scsi/sg.c