Zhipeng Lu
4af4674158
drm/amd/pm/smu7: fix a memleak in smu7_hwmgr_backend_init
...
[ Upstream commit 2f3be3ca779b11c332441b10e00443a2510f4d7b ]
The hwmgr->backend, (i.e. data) allocated by kzalloc is not freed in
the error-handling paths of smu7_get_evv_voltages and
smu7_update_edc_leakage_table. However, it did be freed in the
error-handling of phm_initializa_dynamic_state_adjustment_rule_settings,
by smu7_hwmgr_backend_fini. So the lack of free in smu7_get_evv_voltages
and smu7_update_edc_leakage_table is considered a memleak in this patch.
Fixes: 599a7e9fe1 ("drm/amd/powerplay: implement smu7 hwmgr to manager asics with smu ip version 7.")
Fixes: 8f0804c6b7 ("drm/amd/pm: add edc leakage controller setting")
Signed-off-by: Zhipeng Lu <alexious@zju.edu.cn >
Signed-off-by: Alex Deucher <alexander.deucher@amd.com >
Signed-off-by: Sasha Levin <sashal@kernel.org >
2024-01-25 14:52:45 -08:00
..
2024-01-25 14:52:34 -08:00
2023-09-19 12:22:47 +02:00
2024-01-25 14:52:31 -08:00
2023-12-03 07:31:21 +01:00
2023-12-20 15:17:35 +01:00
2024-01-05 15:13:40 +01:00
2024-01-25 14:52:40 -08:00
2024-01-25 14:52:40 -08:00
2024-01-05 15:13:35 +01:00
2023-11-20 11:08:22 +01:00
2024-01-25 14:52:44 -08:00
2023-11-28 16:56:15 +00:00
2023-10-19 23:05:37 +02:00
2024-01-25 14:52:33 -08:00
2023-09-19 12:22:42 +02:00
2024-01-25 14:52:35 -08:00
2023-11-20 11:08:27 +01:00
2023-07-23 13:47:17 +02:00
2023-11-20 11:08:15 +01:00
2023-11-28 16:56:31 +00:00
2023-08-30 16:18:21 +02:00
2024-01-25 14:52:32 -08:00
2023-07-23 13:47:31 +02:00
2024-01-15 18:51:22 +01:00
2024-01-25 14:52:36 -08:00
2023-09-19 12:22:46 +02:00
2024-01-05 15:13:35 +01:00
2024-01-25 14:52:45 -08:00
2023-12-20 15:17:41 +01:00
2023-06-28 10:29:42 +02:00
2024-01-25 14:52:29 -08:00
2024-01-25 14:52:32 -08:00
2024-01-25 14:52:30 -08:00
2023-11-28 16:56:32 +00:00
2024-01-05 15:13:38 +01:00
2024-01-25 14:52:45 -08:00
2024-01-25 14:52:30 -08:00
2024-01-05 15:13:32 +01:00
2023-12-08 08:48:05 +01:00
2023-11-08 17:26:45 +01:00
2023-08-16 18:22:01 +02:00
2024-01-25 14:52:32 -08:00
2023-07-23 13:47:28 +02:00
2023-11-28 16:56:31 +00:00
2024-01-25 14:52:31 -08:00
2024-01-25 14:52:43 -08:00
2023-07-23 13:47:03 +02:00
2023-07-23 13:46:52 +02:00
2023-11-20 11:08:24 +01:00
2023-12-13 18:36:45 +01:00
2024-01-25 14:52:45 -08:00
2024-01-25 14:52:34 -08:00
2024-01-25 14:52:40 -08:00
2023-06-28 10:29:51 +02:00
2023-09-19 12:22:51 +02:00
2023-07-05 18:25:05 +01:00
2023-11-20 11:08:22 +01:00
2024-01-25 14:52:28 -08:00
2023-11-08 17:26:41 +01:00
2023-12-13 18:36:33 +01:00
2023-09-19 12:22:31 +02:00
2023-10-06 13:18:15 +02:00
2024-01-25 14:52:31 -08:00
2024-01-25 14:52:32 -08:00
2023-11-20 11:08:27 +01:00
2023-11-20 11:08:21 +01:00
2023-10-25 11:59:03 +02:00
2024-01-25 14:52:27 -08:00
2024-01-25 14:52:29 -08:00
2023-10-06 13:18:13 +02:00
2023-07-23 13:46:46 +02:00
2023-11-28 16:56:23 +00:00
2024-01-25 14:52:45 -08:00
2023-10-25 11:59:00 +02:00
2024-01-25 14:52:30 -08:00
2023-11-08 17:26:44 +01:00
2023-11-20 11:08:27 +01:00
2024-01-25 14:52:30 -08:00
2024-01-25 14:52:38 -08:00
2024-01-25 14:52:39 -08:00
2023-12-20 15:17:41 +01:00
2024-01-25 14:52:34 -08:00
2023-12-20 15:17:35 +01:00
2023-10-10 21:59:07 +02:00
2023-12-13 18:36:38 +01:00
2023-11-20 11:08:15 +01:00
2023-10-19 23:05:36 +02:00
2023-12-13 18:36:49 +01:00
2024-01-25 14:52:31 -08:00
2024-01-05 15:13:37 +01:00
2023-12-13 18:36:31 +01:00
2023-09-19 12:22:41 +02:00
2023-11-08 17:26:36 +01:00
2023-12-08 08:48:04 +01:00
2023-11-08 17:26:36 +01:00
2023-07-23 13:47:20 +02:00
2024-01-25 14:52:44 -08:00
2023-12-03 07:31:24 +01:00