diff options
author | Monk Liu <Monk.Liu@amd.com> | 2016-05-27 13:34:11 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-06-09 16:49:04 +0200 |
commit | 89e0ec9f5e27a8c5b5954290bef703dc6aac44f3 (patch) | |
tree | b3a0e0ebfd53bad36270cdf1ed384e58671328bc /drivers/gpu | |
parent | drm/amdgpu: fix mem leak in pplib/hwmgr (diff) | |
download | linux-89e0ec9f5e27a8c5b5954290bef703dc6aac44f3.tar.xz linux-89e0ec9f5e27a8c5b5954290bef703dc6aac44f3.zip |
drm/amdgpu: fix mem leak in atombios
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c index 1727a4d998a4..964f31404f17 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c @@ -827,8 +827,10 @@ static uint32_t cail_ioreg_read(struct card_info *info, uint32_t reg) */ static void amdgpu_atombios_fini(struct amdgpu_device *adev) { - if (adev->mode_info.atom_context) + if (adev->mode_info.atom_context) { kfree(adev->mode_info.atom_context->scratch); + kfree(adev->mode_info.atom_context->iio); + } kfree(adev->mode_info.atom_context); adev->mode_info.atom_context = NULL; kfree(adev->mode_info.atom_card_info); |