diff options
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_ring.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index 694799f6fac1..6579eb4c1f28 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c | |||
@@ -100,6 +100,8 @@ void radeon_ib_free(struct radeon_device *rdev, struct radeon_ib **ib) | |||
100 | if (tmp == NULL) { | 100 | if (tmp == NULL) { |
101 | return; | 101 | return; |
102 | } | 102 | } |
103 | if (!tmp->fence->emited) | ||
104 | radeon_fence_unref(&tmp->fence); | ||
103 | mutex_lock(&rdev->ib_pool.mutex); | 105 | mutex_lock(&rdev->ib_pool.mutex); |
104 | tmp->free = true; | 106 | tmp->free = true; |
105 | mutex_unlock(&rdev->ib_pool.mutex); | 107 | mutex_unlock(&rdev->ib_pool.mutex); |