]> 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>
Thu, 3 Aug 2023 08:22:38 +0000 (10:22 +0200)
commit2e321ee96f886440b5959c63df48fa3cda584388
tree8a334af7fd1585c67169c360a033b1e55127d6fe
parent4b9f3ef1f3eb1dbb8b4056bba2ad401a2f72a3fd
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