Files
linux/drivers/md
Zheng Qixing 5fbcf76e0d 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: 799af947ed ("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>
2025-02-15 19:45:58 +08:00
..
2024-12-23 08:17:23 -07:00
2024-04-01 11:53:37 -06:00
2024-06-26 11:32:39 -04:00
2024-05-09 09:10:58 -04:00
2024-02-20 14:22:51 -05:00
2025-01-17 22:24:04 +01:00
2025-01-17 22:24:11 +01:00
2024-12-23 08:17:23 -07:00
2025-01-17 22:24:06 +01:00
2024-12-23 08:17:22 -07:00
2024-11-20 11:38:04 +01:00
2024-11-20 11:38:04 +01:00
2025-01-13 07:36:29 -08:00
2025-01-13 07:36:29 -08:00
2025-01-13 07:36:29 -08:00
2025-01-31 10:18:50 -08:00