]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
drm/amdgpu/dce11: add missing drm_mode_config_cleanup call
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 2 Oct 2016 21:06:45 +0000 (00:06 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 6 Oct 2016 16:39:03 +0000 (12:39 -0400)
All other amdgpu/dce_v* files have this call, it's only mysteriously
missing from dce_v11_0.c since the file was added and causes leaks.

Fixes: aaa36a976bbb ("drm/amdgpu: Add initial VI support")
Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/dce_v11_0.c

index 678f5eb6cbc22373ec4620ebaabb9a84bfcc1e51..f264b8f17ad1b302ebb51f0f37a1805655529470 100644 (file)
@@ -3159,6 +3159,7 @@ static int dce_v11_0_sw_fini(void *handle)
 
        dce_v11_0_afmt_fini(adev);
 
+       drm_mode_config_cleanup(adev->ddev);
        adev->mode_info.mode_config_initialized = false;
 
        return 0;