summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
diff options
context:
space:
mode:
authorDinghao Liu <dinghao.liu@zju.edu.cn>2023-11-23 15:33:22 +0800
committerAlex Deucher <alexander.deucher@amd.com>2023-11-29 16:49:22 -0500
commitb0e5c88d8a88bdcc9834409387e10a5ae1b2753e (patch)
treec94dd2c12659a8c5364f559ab8bd2d4db1c202f2 /drivers/gpu/drm/amd/amdgpu/amdgpu_debugfs.c
parentca0b006939f9701ab2e14a08ed9ef77a8014d2c5 (diff)
downloadlinux-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