drm/tegra: sor - missing unlock on error
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 11 Jun 2014 07:06:09 +0000 (10:06 +0300)
committerThierry Reding <treding@nvidia.com>
Mon, 4 Aug 2014 08:07:33 +0000 (10:07 +0200)
We should unlock before returning the error code.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/sor.c

index 27c979b5011112182226f7a1cd4d0e1e6b54c9ed..64f57fa9b8f69c2e965aebb6e7c56f76dc00e1c2 100644 (file)
@@ -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;
                }
        }