Displaying 1 result from an estimated 1 matches for "nouveau_gem_pushbuf_backoff".
2009 Sep 07
1
[PATCH] drm/nouveau: fix ref leak in nouveau_gem_pushbuf_validate()
...-EINVAL;
- goto out_unref;
- }
- nvbo = gem->driver_private;
-
- ret = ttm_bo_reserve(&nvbo->bo, false, false, true,
- chan->fence.sequence);
- if (ret) {
+ ret = nouveau_gem_pushbuf_lookup_and_reserve(chan, file_priv,
+ b, &nvbo);
+ if (ret == -EAGAIN) {
nouveau_gem_pushbuf_backoff(list);
- if (ret == -EAGAIN) {
- ret = ttm_bo_wait_unreserved(&nvbo->bo, false);
- if (unlikely(ret))
- goto out_unref;
- goto retry;
- } else
- goto out_unref;
+ goto retry;
}
+ if (ret)
+ goto out_unref;
+ list_add_tail(&nvbo->entry, list);
if (unli...