]> git.baikalelectronics.ru Git - kernel.git/commit
block: initialize ret in bdev_disk_changed
authorChristoph Hellwig <hch@lst.de>
Thu, 8 Apr 2021 19:41:40 +0000 (21:41 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 12 Apr 2021 12:44:24 +0000 (06:44 -0600)
commitd75c40f648cc0dd67723d6acfbe039dbcc21c4f6
tree09a5105ae736dab0b18e84af8ca860c7ef05c2dc
parent606eed1222e74d58bc3e65ec48989dcac83453b8
block: initialize ret in bdev_disk_changed

Avoid a potentially initialized variabe in the invalidate case.

Fixes: e5770f5f092b ("block: refactor blk_drop_partitions")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Link: https://lore.kernel.org/r/20210408194140.1816537-1-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/block_dev.c