From: Christian König Date: Fri, 24 Jun 2016 19:51:03 +0000 (+0200) Subject: drm/ttm: fix stupid parameter inversion in the pipeline code X-Git-Tag: v4.8-rc1~62^2~23^2~37 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=847b6cf9fb771341a550661ef61d510722eba785;p=karo-tx-linux.git drm/ttm: fix stupid parameter inversion in the pipeline code We want to keep the newest fence, not the oldest one. Reviewed-by: Alex Deucher Signed-off-by: Christian König Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/ttm/ttm_bo_util.c b/drivers/gpu/drm/ttm/ttm_bo_util.c index 0c389a54cac1..4da0e784f9e7 100644 --- a/drivers/gpu/drm/ttm/ttm_bo_util.c +++ b/drivers/gpu/drm/ttm/ttm_bo_util.c @@ -753,7 +753,7 @@ int ttm_bo_pipeline_move(struct ttm_buffer_object *bo, */ spin_lock(&from->move_lock); - if (!from->move || fence_is_later(from->move, fence)) { + if (!from->move || fence_is_later(fence, from->move)) { fence_put(from->move); from->move = fence_get(fence); }