Files
linux-stable-mirror/drivers/gpu/drm/amd/pm
Dinghao LiuandGreg Kroah-Hartman 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>
2023-12-08 08:52:25 +01:00
..