]> git.karo-electronics.de Git - linux-beck.git/commitdiff
drm/amdgpu: clear ring pointer in amdgpu_device on teardown
authorGrazvydas Ignotas <notasas@gmail.com>
Sun, 25 Sep 2016 20:34:47 +0000 (23:34 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 27 Sep 2016 17:00:51 +0000 (13:00 -0400)
This is in symmetry to setup done in amdgpu_ring_init.

Signed-off-by: Grazvydas Ignotas <notasas@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c

index 777f11b63b4c4b4574059c7942394550f3fc771b..e1fa8731d1e2db7b16c09edf44d195e8d457cf07 100644 (file)
@@ -264,6 +264,8 @@ void amdgpu_ring_fini(struct amdgpu_ring *ring)
                              (void **)&ring->ring);
 
        amdgpu_debugfs_ring_fini(ring);
+
+       ring->adev->rings[ring->idx] = NULL;
 }
 
 /*