aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 13f9b6667c94..4d2baf7b00be 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -1606,7 +1606,9 @@ intel_user_framebuffer_create(struct drm_device *dev,
1606 1606
1607 ret = intel_framebuffer_create(dev, mode_cmd, &fb, obj); 1607 ret = intel_framebuffer_create(dev, mode_cmd, &fb, obj);
1608 if (ret) { 1608 if (ret) {
1609 mutex_lock(&dev->struct_mutex);
1609 drm_gem_object_unreference(obj); 1610 drm_gem_object_unreference(obj);
1611 mutex_unlock(&dev->struct_mutex);
1610 return NULL; 1612 return NULL;
1611 } 1613 }
1612 1614