mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
OMAPDSS: pll: NULL dereference in error handling
The regulator_disable() doesn't accept NULL pointers. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
This commit is contained in:
parent
1616cf01a4
commit
811174f45f
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,8 @@ int dss_pll_enable(struct dss_pll *pll)
|
|||
return 0;
|
||||
|
||||
err_enable:
|
||||
regulator_disable(pll->regulator);
|
||||
if (pll->regulator)
|
||||
regulator_disable(pll->regulator);
|
||||
err_reg:
|
||||
clk_disable_unprepare(pll->clkin);
|
||||
return r;
|
||||
|
|
Loading…
Reference in a new issue