diff options
| author | Zheng Qixing <zhengqixing@huawei.com> | 2025-02-15 10:01:37 +0800 |
|---|---|---|
| committer | Yu Kuai <yukuai@kernel.org> | 2025-02-15 19:45:58 +0800 |
| commit | 5fbcf76e0dfe68578ffa2a8a691cc44cf586ae35 (patch) | |
| tree | 9b6c78b4bb10bd6339b47efa8c49fb81502d021c /tools/perf/scripts/python/stackcollapse.py | |
| parent | md: ensure resync is prioritized over recovery (diff) | |
| download | linux-5fbcf76e0dfe68578ffa2a8a691cc44cf586ae35.tar.gz linux-5fbcf76e0dfe68578ffa2a8a691cc44cf586ae35.zip | |
md/raid1: fix memory leak in raid1_run() if no active rdev
When `raid1_set_limits()` fails or when the array has no active
`rdev`, the allocated memory for `conf` is not properly freed.
Add raid1_free() call to properly free the conf in error path.
Fixes: 799af947ed13 ("md/raid1: don't free conf on raid0_run failure")
Signed-off-by: Zheng Qixing <zhengqixing@huawei.com>
Link: https://lore.kernel.org/linux-raid/20250215020137.3703757-1-zhengqixing@huaweicloud.com
Singed-off-by: Yu Kuai <yukuai3@huawei.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
