drm/tegra: sor - missing unlock on error
PATCH 1/1 drm/tegra: sor - missing unlock on error
We should unlock before returning the error code.
Signed-off-by Dan Carpenter <[email protected]>
drivers/gpu/drm/tegra/sor.c +1 -1
@@ -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; } }
Thierry Reding
AppliedQuoted 9 lines · Dan Carpenter
We should unlock before returning the error code.
Signed-off-by Dan Carpenter <[email protected]>drivers/gpu/drm/tegra/sor.c +0
-0
drivers/gpu/drm/tegra/sor.c static int tegra_output_sor_enable(struct tegra_output *output) · line 522
Quoted 8 lines
drivers/gpu/drm/tegra/sor.c +1
-1@@ -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; } }
Applied, thanks.
Thierry