Skip to content
Commit 0ea60b5a authored by Jens Axboe's avatar Jens Axboe
Browse files

[BLOCK] bio: init ->bi_bdev in bio_init()



For SG_IO requests, bio->bi_bdev may not be explicitly initialized. So make
bio_init() clear the field to make sure it's always NULL or valid.

Signed-off-by: default avatarJens Axboe <axboe@suse.de>
parent 769db45b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment