]> git.baikalelectronics.ru Git - kernel.git/commit
direct-io: be sure to assign dio->bio_bdev for both paths
authorJens Axboe <axboe@fb.com>
Tue, 10 Nov 2015 17:14:38 +0000 (10:14 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 10 Nov 2015 17:14:38 +0000 (10:14 -0700)
commit4d3edc240e30abac77b1802d324108bc775a1d2f
treef064a2591788be8ac0fcaf4315ed38f8e33bff3a
parentf40fd0fea1558bd2636edfc9350011ec39b7914e
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: kernel test robot <ying.huang@linux.intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
fs/direct-io.c