summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-core/i915_gem.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/linux-core/i915_gem.c b/linux-core/i915_gem.c
index 8e5539f5..e01823fb 100644
--- a/linux-core/i915_gem.c
+++ b/linux-core/i915_gem.c
@@ -982,7 +982,9 @@ i915_gem_wait_space(struct drm_device *dev)
list);
if (obj_priv == last_priv)
break;
+ drm_gem_object_reference(obj_priv->obj);
ret = i915_gem_object_wait_rendering(obj_priv->obj);
+ drm_gem_object_unreference(obj_priv->obj);
if (ret)
break;
last_priv = obj_priv;