]> git.baikalelectronics.ru Git - kernel.git/commit
dm zoned: fix uninitialized pointer dereference
authorDamien Le Moal <damien.lemoal@wdc.com>
Mon, 8 Jun 2020 04:20:59 +0000 (13:20 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 17 Jun 2020 16:13:08 +0000 (12:13 -0400)
commit3ace18140d6ce1ff498e20e04cc15e4348636940
tree4ade1dea14e8f382fb7ae547648393f6a89c5c71
parent74a27a5f5a99e6b5adfd790053b6cccac3270c76
dm zoned: fix uninitialized pointer dereference

Make sure that the local variable rzone in dmz_do_reclaim() is always
initialized before being used for printing debug messages.

Fixes: de775117e000 ("dm zoned: per-device reclaim")
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-zoned-reclaim.c