diff options
Diffstat (limited to 'drivers/gpu/drm/i915/i915_gem.c')
-rw-r--r-- | drivers/gpu/drm/i915/i915_gem.c | 1 |
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 e5fc664337f3..fd4b4e268a22 100644 --- a/drivers/gpu/drm/i915/i915_gem.c +++ b/drivers/gpu/drm/i915/i915_gem.c | |||
@@ -3106,6 +3106,7 @@ i915_gem_init_hws(struct drm_device *dev) | |||
3106 | if (dev_priv->hw_status_page == NULL) { | 3106 | if (dev_priv->hw_status_page == NULL) { |
3107 | DRM_ERROR("Failed to map status page.\n"); | 3107 | DRM_ERROR("Failed to map status page.\n"); |
3108 | memset(&dev_priv->hws_map, 0, sizeof(dev_priv->hws_map)); | 3108 | memset(&dev_priv->hws_map, 0, sizeof(dev_priv->hws_map)); |
3109 | i915_gem_object_unpin(obj); | ||
3109 | drm_gem_object_unreference(obj); | 3110 | drm_gem_object_unreference(obj); |
3110 | return -EINVAL; | 3111 | return -EINVAL; |
3111 | } | 3112 | } |