summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-03-10 15:38:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-05-17 11:13:14 +0200
commitabf4d67060c8f63caff096e5fca1564bfef1e5d4 (patch)
tree7d77c70fa470148394c0747390f542a9f3db594e /include/linux
parent49de75fc7ca979c6eadbd35d3ed263ed53973d8f (diff)
md/raid10: fix memleak of md thread
[ Upstream commit f0ddb83da3cbbf8a1f9087a642c448ff52ee9abd ] In raid10_run(), if setup_conf() succeed and raid10_run() failed before setting 'mddev->thread', then in the error path 'conf->thread' is not freed. Fix the problem by setting 'mddev->thread' right after setup_conf(). Fixes: 43a521238aca ("md-cluster: choose correct label when clustered layout is not supported") Signed-off-by: Yu Kuai <yukuai3@huawei.com> Signed-off-by: Song Liu <song@kernel.org> Link: https://lore.kernel.org/r/20230310073855.1337560-7-yukuai1@huaweicloud.com Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions