linux/drivers/gpu/drm/amd/pm
Dinghao Liu 6832e5396d drm/amd/pm: fix a memleak in aldebaran_tables_init
[ Upstream commit 7a88f23e76 ]

When kzalloc() for smu_table->ecc_table fails, we should free
the previously allocated resources to prevent memleak.

Fixes: edd7942085 ("drm/amd/pm: add message smu to get ecc_table v2")
Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2023-12-08 08:52:25 +01:00
..
inc drm/amdgpu: open brace '{' following struct go on the same line 2023-07-25 13:44:00 -04:00
legacy-dpm drm/amd/pm: Clean up errors in sislands_smc.h 2023-08-09 09:42:44 -04:00
powerplay drm/amd: Disable PP_PCIE_DPM_MASK when dynamic speed switching not supported 2023-11-28 17:19:41 +00:00
swsmu drm/amd/pm: fix a memleak in aldebaran_tables_init 2023-12-08 08:52:25 +01:00
amdgpu_dpm.c drm/amd/pm: avoid potential UBSAN issue on legacy asics 2023-06-09 09:36:34 -04:00
amdgpu_dpm_internal.c drm/amd/pm: add missing prototypes to amdgpu_dpm_internal 2022-02-07 18:03:50 -05:00
amdgpu_pm.c drm/amd/pm: Handle non-terminated overdrive commands. 2023-11-28 17:20:16 +00:00
Makefile drm/amd/pm: relocate the power related headers 2022-01-14 17:51:14 -05:00