diff options
| author | Yu Kuai <[email protected]> | 2023-03-10 07:38:55 +0000 |
|---|---|---|
| committer | Song Liu <[email protected]> | 2023-04-14 07:42:03 +0000 |
| commit | f0ddb83da3cbbf8a1f9087a642c448ff52ee9abd (patch) | |
| tree | a01c3dcbb0062627c6d2281ec8911e804ca3864c /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | md/raid10: fix memleak for 'conf->bio_split' (diff) | |
| download | kernel-f0ddb83da3cbbf8a1f9087a642c448ff52ee9abd.tar.gz kernel-f0ddb83da3cbbf8a1f9087a642c448ff52ee9abd.zip | |
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 <[email protected]>
Signed-off-by: Song Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
