]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix gart.bo pin_count leak
authorLeslie Shi <Yuliang.Shi@amd.com>
Thu, 23 Sep 2021 08:05:31 +0000 (16:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 28 Sep 2021 18:38:16 +0000 (14:38 -0400)
commit6ea42a1587d06239e2276690b66ee09c53e345dd
tree0bba99f18ff92457c58875bf58693d39de889dc8
parentd0b2fa07a93a05fb20f98e92bb1e666eee15d4f8
drm/amdgpu: fix gart.bo pin_count leak

gmc_v{9,10}_0_gart_disable() isn't called matched with
correspoding gart_enbale function in SRIOV case. This will
lead to gart.bo pin_count leak on driver unload.

Cc: Hawking Zhang <Hawking.Zhang@amd.com>
Signed-off-by: Leslie Shi <Yuliang.Shi@amd.com>
Signed-off-by: Guchun Chen <guchun.chen@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v10_0.c
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c