]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/i915: prevent possible pin leak on error path
authorEugeni Dodonov <eugeni.dodonov@intel.com>
Mon, 18 Jun 2012 22:03:38 +0000 (19:03 -0300)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 17 Oct 2012 02:48:08 +0000 (03:48 +0100)
commit ab3951eb74e7c33a2f5b7b64d72e82f1eea61571 upstream.

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>
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/gpu/drm/i915/intel_display.c

index 6c3fb44445a90493585aeee0aa4e91f321d70271..b65afe3b8da786a9af020ab63afcb1da3031039f 100644 (file)
@@ -7193,7 +7193,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);