dm btree remove: fix use after free in rebalance_children()
authorJoe Thornber <ejt@redhat.com>
Wed, 24 Nov 2021 17:07:39 +0000 (12:07 -0500)
committerMike Snitzer <snitzer@redhat.com>
Wed, 24 Nov 2021 17:07:39 +0000 (12:07 -0500)
commit1b8d2789dad0005fd5e7d35dab26a8e1203fb6da
tree6c49bc3e43d996b4a88f2e32201cd47465902ab5
parent136057256686de39cc3a07c2e39ef6bc43003ff6
dm btree remove: fix use after free in rebalance_children()

Move dm_tm_unlock() after dm_tm_dec().

Cc: stable@vger.kernel.org
Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/persistent-data/dm-btree-remove.c