Commit ab3951eb authored by Eugeni Dodonov's avatar Eugeni Dodonov Committed by Daniel Vetter

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: default avatarHerton Ronaldo Krzesinski <herton.krzesinski@canonical.com>
Reviewed-by: default avatarChris Wlison <chris@chris-wilson.co.uk>
Signed-off-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
parent acbe9475
...@@ -6317,7 +6317,7 @@ static int intel_gen7_queue_flip(struct drm_device *dev, ...@@ -6317,7 +6317,7 @@ static int intel_gen7_queue_flip(struct drm_device *dev,
default: default:
WARN_ONCE(1, "unknown plane in flip command\n"); WARN_ONCE(1, "unknown plane in flip command\n");
ret = -ENODEV; ret = -ENODEV;
goto err; goto err_unpin;
} }
ret = intel_ring_begin(ring, 4); ret = intel_ring_begin(ring, 4);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment