aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2021-08-05 20:37:14 +0200
committerAlex Deucher <alexander.deucher@amd.com>2021-08-05 21:18:00 -0400
commita5467ebd681fa2ba09cfa64689c5fc0773fd0634 (patch)
tree568b99ad2a04c911c5a8fef17220d1fa49373d7a /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
parentb5768a78d25963dd3e7dd8181910a0d03324035a (diff)
downloadlinux-a5467ebd681fa2ba09cfa64689c5fc0773fd0634.tar.gz
linux-a5467ebd681fa2ba09cfa64689c5fc0773fd0634.tar.bz2
linux-a5467ebd681fa2ba09cfa64689c5fc0773fd0634.zip
drm/amd/pm: Fix a memory leak in an error handling path in 'vangogh_tables_init()'
'watermarks_table' must be freed instead 'clocks_table', because 'clocks_table' is known to be NULL at this point and 'watermarks_table' is never freed if the last kzalloc fails. Fixes: c98ee89736b8 ("drm/amd/pm: add the fine grain tuning function for vangogh") Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions