[PATCH] drm/ttm: Fix missing return
Thomas Hellstrom
thellstrom at vmware.com
Fri Oct 1 01:09:38 PDT 2010
The commit "drm/ttm: Fix two race conditions"
was missing a return statement in a very unlikely code path.
Signed-off-by: Thomas Hellstrom <thellstrom at vmware.com>
---
drivers/gpu/drm/ttm/ttm_bo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index b98cb2c..d6000d7 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -524,6 +524,7 @@ static int ttm_bo_cleanup_refs(struct ttm_buffer_object *bo, bool remove_all)
atomic_set(&bo->reserved, 0);
wake_up_all(&bo->event_queue);
spin_unlock(&glob->lru_lock);
+ return 0;
}
put_count = ttm_bo_del_from_lru(bo);
--
1.6.2.5
More information about the dri-devel
mailing list