aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/i915_gem.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r--drivers/gpu/drm/i915/i915_gem.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/i915_gem.c b/drivers/gpu/drm/i915/i915_gem.c
index 0bec4e6d336..e5fc664337f 100644
--- a/drivers/gpu/drm/i915/i915_gem.c
+++ b/drivers/gpu/drm/i915/i915_gem.c
@@ -3159,6 +3159,7 @@ i915_gem_init_ringbuffer(struct drm_device *dev)
3159 if (ring->map.handle == NULL) { 3159 if (ring->map.handle == NULL) {
3160 DRM_ERROR("Failed to map ringbuffer.\n"); 3160 DRM_ERROR("Failed to map ringbuffer.\n");
3161 memset(&dev_priv->ring, 0, sizeof(dev_priv->ring)); 3161 memset(&dev_priv->ring, 0, sizeof(dev_priv->ring));
3162 i915_gem_object_unpin(obj);
3162 drm_gem_object_unreference(obj); 3163 drm_gem_object_unreference(obj);
3163 return -EINVAL; 3164 return -EINVAL;
3164 } 3165 }