Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 811174f4 authored by Dan Carpenter's avatar Dan Carpenter Committed by Tomi Valkeinen
Browse files

OMAPDSS: pll: NULL dereference in error handling



The regulator_disable() doesn't accept NULL pointers.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
parent 1616cf01
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -97,6 +97,7 @@ int dss_pll_enable(struct dss_pll *pll)
	return 0;

err_enable:
	if (pll->regulator)
		regulator_disable(pll->regulator);
err_reg:
	clk_disable_unprepare(pll->clkin);