OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1616cf0
)
OMAPDSS: pll: NULL dereference in error handling
author
Dan Carpenter
<dan.carpenter@oracle.com>
Tue, 16 Dec 2014 23:54:42 +0000
(
02:54
+0300)
committer
Tomi Valkeinen
<tomi.valkeinen@ti.com>
Mon, 29 Dec 2014 08:06:55 +0000
(10:06 +0200)
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>
drivers/video/fbdev/omap2/dss/pll.c
patch
|
blob
|
history
diff --git
a/drivers/video/fbdev/omap2/dss/pll.c
b/drivers/video/fbdev/omap2/dss/pll.c
index
50bc62c
..
335ffac
100644
(file)
--- a/
drivers/video/fbdev/omap2/dss/pll.c
+++ b/
drivers/video/fbdev/omap2/dss/pll.c
@@
-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;