summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/intel_display.c
diff options
context:
space:
mode:
authorEugeni Dodonov <eugeni.dodonov@intel.com>2012-06-18 19:03:38 -0300
committerDaniel Vetter <daniel.vetter@ffwll.ch>2012-07-26 22:32:29 +0200
commitab3951eb74e7c33a2f5b7b64d72e82f1eea61571 (patch)
tree02b23adccf278c76a86c4d76fd75208c10a2ea22 /drivers/gpu/drm/i915/intel_display.c
parentacbe9475505de68540fab8653131d41d424c4fa3 (diff)
downloadlwn-ab3951eb74e7c33a2f5b7b64d72e82f1eea61571.tar.gz
lwn-ab3951eb74e7c33a2f5b7b64d72e82f1eea61571.zip
drm/i915: prevent possible pin leak on error path
We should not hit this under any sane conditions, but still, this does not looks right. CC: Chris Wilson <chris@chris-wilson.co.uk> CC: Daniel Vetter <daniel.vetter@ffwll.ch> CC: stable@vger.kernel.org Reported-by: Herton Ronaldo Krzesinski <herton.krzesinski@canonical.com> Reviewed-by: Chris Wlison <chris@chris-wilson.co.uk> Signed-off-by: Eugeni Dodonov <eugeni.dodonov@intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r--drivers/gpu/drm/i915/intel_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
index 17020cdff338..2e1f28f38ee9 100644
--- a/drivers/gpu/drm/i915/intel_display.c
+++ b/drivers/gpu/drm/i915/intel_display.c
@@ -6317,7 +6317,7 @@ static int intel_gen7_queue_flip(struct drm_device *dev,
default:
WARN_ONCE(1, "unknown plane in flip command\n");
ret = -ENODEV;
- goto err;
+ goto err_unpin;
}
ret = intel_ring_begin(ring, 4);