diff options
author | Yu Kuai <yukuai3@huawei.com> | 2023-03-10 10:38:54 +0300 |
---|---|---|
committer | Song Liu <song@kernel.org> | 2023-04-14 10:42:03 +0300 |
commit | c9ac2acde53f5385de185bccf6aaa91cf9ac1541 (patch) | |
tree | 39128948b887bcf642ebe489d538e26db2b6977d /tools/perf/scripts/python/export-to-sqlite.py | |
parent | 26208a7cffd0c7cbf14237ccd20c7270b3ffeb7e (diff) | |
download | linux-c9ac2acde53f5385de185bccf6aaa91cf9ac1541.tar.xz |
md/raid10: fix memleak for 'conf->bio_split'
In the error path of raid10_run(), 'conf' need be freed, however,
'conf->bio_split' is missed and memory will be leaked.
Since there are 3 places to free 'conf', factor out a helper to fix the
problem.
Fixes: fc9977dd069e ("md/raid10: simplify the splitting of requests.")
Signed-off-by: Yu Kuai <yukuai3@huawei.com>
Signed-off-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/r/20230310073855.1337560-6-yukuai1@huaweicloud.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions