]> git.baikalelectronics.ru Git - kernel.git/commit
block: fix bmd->is_null_mapped initialization
authorChristoph Hellwig <hch@lst.de>
Wed, 23 Sep 2020 15:07:13 +0000 (17:07 +0200)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Sep 2020 15:18:39 +0000 (09:18 -0600)
commitb2a8ad35c12091a31aa1fec92de26242ab4a2f40
treef75049f052338e26a4d1520fa8d031f7815dce07
parent05aa21f503bf2c5a507a84056a6314bbaf79dcce
block: fix bmd->is_null_mapped initialization

bmd is allocated using kmalloc in bio_alloc_map_data, so make sure
is_null_mapped is properly initialized to false for the !null_mapped
case.

Fixes: c62020ea97d0 ("block: remove the BIO_NULL_MAPPED flag")
Reported-by: Marc Hartmayer <mhartmay@linux.ibm.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/blk-map.c