From: Dan Carpenter Date: Wed, 11 Jun 2014 07:06:09 +0000 (+0300) Subject: drm/tegra: sor - missing unlock on error X-Git-Tag: v3.17-rc1~82^2~1^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2263c460bed14f36c9a87d97242c35cf1346f61e;p=platform%2Fkernel%2Flinux-exynos.git drm/tegra: sor - missing unlock on error We should unlock before returning the error code. Signed-off-by: Dan Carpenter Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/sor.c b/drivers/gpu/drm/tegra/sor.c index 27c979b..64f57fa 100644 --- a/drivers/gpu/drm/tegra/sor.c +++ b/drivers/gpu/drm/tegra/sor.c @@ -516,7 +516,7 @@ static int tegra_output_sor_enable(struct tegra_output *output) if (err < 0) { dev_err(sor->dev, "failed to probe eDP link: %d\n", err); - return err; + goto unlock; } }