]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] fix SG_IO bio leak
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Mon, 11 Dec 2006 09:01:34 +0000 (10:01 +0100)
committerJens Axboe <axboe@nelson.home.kernel.dk>
Tue, 12 Dec 2006 09:22:23 +0000 (10:22 +0100)
commitde6a9b8f3127bd2b141fda76b7112b3bdade1e76
tree4783e29d9e1cff21a91e8c7a9d5e32c6c1b06479
parentd670a070ff97c58454f349913100d2c2c02ac485
[PATCH] fix SG_IO bio leak

This patch fixes bio leaks in SG_IO. rq->bio can be changed after io
completion, so we need to reset rq->bio before calling blk_rq_unmap_user()

http://marc.theaimsgroup.com/?l=linux-kernel&m=116570666807983&w=2

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/scsi_ioctl.c