diff options
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/ttm/ttm_bo.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c index 1587aeca7bea..b82ba6e5a586 100644 --- a/drivers/gpu/drm/ttm/ttm_bo.c +++ b/drivers/gpu/drm/ttm/ttm_bo.c | |||
@@ -527,9 +527,12 @@ static int ttm_bo_evict(struct ttm_buffer_object *bo, unsigned mem_type, | |||
527 | ret = ttm_bo_wait(bo, false, interruptible, no_wait); | 527 | ret = ttm_bo_wait(bo, false, interruptible, no_wait); |
528 | spin_unlock(&bo->lock); | 528 | spin_unlock(&bo->lock); |
529 | 529 | ||
530 | if (ret && ret != -ERESTART) { | 530 | if (unlikely(ret != 0)) { |
531 | printk(KERN_ERR TTM_PFX "Failed to expire sync object before " | 531 | if (ret != -ERESTART) { |
532 | "buffer eviction.\n"); | 532 | printk(KERN_ERR TTM_PFX |
533 | "Failed to expire sync object before " | ||
534 | "buffer eviction.\n"); | ||
535 | } | ||
533 | goto out; | 536 | goto out; |
534 | } | 537 | } |
535 | 538 | ||