]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths
authorYu Kuai <yukuai3@huawei.com>
Sat, 8 Jul 2023 09:21:51 +0000 (17:21 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 09:33:51 +0000 (11:33 +0200)
commit4f7e78b0d07b576adf32099c4c5e560196fe521c
tree6c2332cea803e6fc567a1bc642e90fb3f1cd8e4f
parentd554350f5b2ecf39d33f49b4e4eb54f54c208e28
dm raid: fix missing reconfig_mutex unlock in raid_ctr() error paths

[ Upstream commit bae3028799dc4f1109acc4df37c8ff06f2d8f1a0 ]

In the error paths 'bad_stripe_cache' and 'bad_check_reshape',
'reconfig_mutex' is still held after raid_ctr() returns.

Fixes: 9dbd1aa3a81c ("dm raid: add reshaping support to the target")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Mike Snitzer <snitzer@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/md/dm-raid.c