]> git.baikalelectronics.ru Git - kernel.git/commit
block: make blk_rq_map_user() clear ->bio if it unmaps it
authorJens Axboe <jens.axboe@oracle.com>
Mon, 18 Feb 2008 12:51:56 +0000 (13:51 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 19 Feb 2008 09:04:00 +0000 (10:04 +0100)
commitea811b4bfe5cd0a6061afcff853c28573fdb99e1
treee268a42aa43b6dae3c4f4c8d5c4b2e24d6e2d65a
parent858ad94893090351bc63765ffc06db7b45a6df45
block: make blk_rq_map_user() clear ->bio if it unmaps it

That way the interface is symmetric, and calling blk_rq_unmap_user()
on the request wont oops.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
block/blk-map.c