diff options
author | Monk Liu <Monk.Liu@amd.com> | 2016-05-18 10:15:47 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2016-05-25 15:42:53 +0200 |
commit | 48c60c03bcac36bb443f771b5e221a47d501b2ad (patch) | |
tree | 1e0f70a08502ea7b856a09c5953fa6ad038afe83 /drivers/gpu/drm | |
parent | drm/amd/powerplay/hwmgr: use kmemdup (diff) | |
download | linux-48c60c03bcac36bb443f771b5e221a47d501b2ad.tar.xz linux-48c60c03bcac36bb443f771b5e221a47d501b2ad.zip |
drm/amdgpu: fix bug in fence driver fini
Using wrong counter for walking fences. Fixes
a crash when unloading the driver.
Signed-off-by: Monk Liu <Monk.Liu@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c index 7eb2fca871e8..d1558768cfb7 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c @@ -443,7 +443,7 @@ void amdgpu_fence_driver_fini(struct amdgpu_device *adev) amd_sched_fini(&ring->sched); del_timer_sync(&ring->fence_drv.fallback_timer); for (j = 0; j <= ring->fence_drv.num_fences_mask; ++j) - fence_put(ring->fence_drv.fences[i]); + fence_put(ring->fence_drv.fences[j]); kfree(ring->fence_drv.fences); ring->fence_drv.initialized = false; } |