diff options
author | Dinghao Liu <dinghao.liu@zju.edu.cn> | 2023-11-23 15:33:22 +0800 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-11-29 16:49:22 -0500 |
commit | b0e5c88d8a88bdcc9834409387e10a5ae1b2753e (patch) | |
tree | c94dd2c12659a8c5364f559ab8bd2d4db1c202f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c | |
parent | ca0b006939f9701ab2e14a08ed9ef77a8014d2c5 (diff) | |
download | linux-b0e5c88d8a88bdcc9834409387e10a5ae1b2753e.tar.gz linux-b0e5c88d8a88bdcc9834409387e10a5ae1b2753e.tar.bz2 linux-b0e5c88d8a88bdcc9834409387e10a5ae1b2753e.zip |
drm/amd/pm: fix a memleak in aldebaran_tables_init
When kzalloc() for smu_table->ecc_table fails, we should free
the previously allocated resources to prevent memleak.
Fixes: edd794208555 ("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>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c')
0 files changed, 0 insertions, 0 deletions