]> Git Repo - linux.git/commitdiff
drm/amdgpu: Add a missing lock for drm_mm_takedown
authorMikita Lipski <[email protected]>
Fri, 19 Jan 2018 16:21:04 +0000 (11:21 -0500)
committerAlex Deucher <[email protected]>
Tue, 20 Feb 2018 20:09:21 +0000 (15:09 -0500)
Inside amdgpu_gtt_mgr_fini add a missing lock to maintain
locking balance

Signed-off-by: Mikita Lipski <[email protected]>
Reviewed-by: Andrey Grodzovsky <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
drivers/gpu/drm/amd/amdgpu/amdgpu_gtt_mgr.c

index e14ab34d8262418084abdafe4015ad5ddee5c0a7..7c2be32c5aea6fd55a5747fd22d80e913d356c1c 100644 (file)
@@ -75,7 +75,7 @@ static int amdgpu_gtt_mgr_init(struct ttm_mem_type_manager *man,
 static int amdgpu_gtt_mgr_fini(struct ttm_mem_type_manager *man)
 {
        struct amdgpu_gtt_mgr *mgr = man->priv;
-
+       spin_lock(&mgr->lock);
        drm_mm_takedown(&mgr->mm);
        spin_unlock(&mgr->lock);
        kfree(mgr);
This page took 0.0497379999999999 seconds and 4 git commands to generate.