drm/i915: Fix lock dropping in intel_tv_detect()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 2 Sep 2014 09:57:22 +0000 (12:57 +0300)
committerJani Nikula <jani.nikula@intel.com>
Tue, 2 Sep 2014 09:58:51 +0000 (12:58 +0300)
commitbbfb44e8b688e778964275ab0862f67463ba4f84
tree13f4ac4272102efbcdf630ef309943a3c46b0b48
parent2a592bec50994597716c633191ed6bf7af14defc
drm/i915: Fix lock dropping in intel_tv_detect()

When intel_tv_detect() fails to do load detection it would forget to
drop the locks and clean up the acquire context. Fix it up.

This is a regression from:
 commit 208bf9fdcd3575aa4a5d48b3e0295f7cdaf6fc44
 Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
 Date:   Mon Aug 11 13:15:35 2014 +0300

    drm/i915: Fix locking for intel_enable_pipe_a()

v2: Make the code more readable (Chris)
v3: Drop WARN_ON(type < 0) (Chris)

Cc: stable@vger.kernel.org
Cc: Tibor Billes <tbilles@gmx.com>
Reported-by: Tibor Billes <tbilles@gmx.com>
Tested-by: Tibor Billes <tbilles@gmx.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
drivers/gpu/drm/i915/intel_tv.c