diff options
Diffstat (limited to 'drivers/gpu/drm/radeon/radeon_ring.c')
-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 08e1578f55f8..407d90aaa0c3 100644 --- a/drivers/gpu/drm/radeon/radeon_ring.c +++ b/drivers/gpu/drm/radeon/radeon_ring.c | |||
@@ -346,7 +346,9 @@ int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsi | |||
346 | if (ndw < ring->ring_free_dw) { | 346 | if (ndw < ring->ring_free_dw) { |
347 | break; | 347 | break; |
348 | } | 348 | } |
349 | mutex_unlock(&ring->mutex); | ||
349 | r = radeon_fence_wait_next(rdev, radeon_ring_index(rdev, ring)); | 350 | r = radeon_fence_wait_next(rdev, radeon_ring_index(rdev, ring)); |
351 | mutex_lock(&ring->mutex); | ||
350 | if (r) | 352 | if (r) |
351 | return r; | 353 | return r; |
352 | } | 354 | } |