summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorYu Kuai <yukuai3@huawei.com>2023-03-10 10:38:55 +0300
committerSong Liu <song@kernel.org>2023-04-14 10:42:03 +0300
commitf0ddb83da3cbbf8a1f9087a642c448ff52ee9abd (patch)
treea01c3dcbb0062627c6d2281ec8911e804ca3864c /tools/perf/scripts/python/export-to-sqlite.py
parentc9ac2acde53f5385de185bccf6aaa91cf9ac1541 (diff)
downloadlinux-f0ddb83da3cbbf8a1f9087a642c448ff52ee9abd.tar.xz
md/raid10: fix memleak of md thread
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
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions