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 777f11b..e1fa873 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;
 }
 
 /*