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

direct-io: be sure to assign dio->bio_bdev for both paths



btrfs sets ->submit_io(), and we failed to set the block dev for
that path. That resulted in a potential NULL dereference when
we later wait for IO in dio_await_one().

Reported-by: default avatarkernel test robot <ying.huang@linux.intel.com>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent 15c4f638
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