projects
/
platform
/
core
/
system
/
deviced.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b828581
)
Fix the bug that system-server is crashed during power-off.
author
sh.pi
<sh.pi@samsung.com>
Fri, 3 May 2013 08:35:16 +0000
(17:35 +0900)
committer
Krzysztof Sasiak
<k.sasiak@samsung.com>
Tue, 23 Jul 2013 08:52:16 +0000
(10:52 +0200)
pmsys is freed during power-off.
But deviced changes the brightness by light sensor.
and it accesses pmsys node.
now pmsys pointer is checked when brightness is changed.
Signed-off-by: Krzysztof Sasiak <k.sasiak@samsung.com>
src/display/llinterface.c
patch
|
blob
|
history
diff --git
a/src/display/llinterface.c
b/src/display/llinterface.c
index
02c8a17
..
5dd6352
100644
(file)
--- a/
src/display/llinterface.c
+++ b/
src/display/llinterface.c
@@
-365,6
+365,9
@@
static int backlight_restore(void)
static int set_default_brt(int level)
{
+ if (!pmsys)
+ return -EFAULT;
+
if (level < PM_MIN_BRIGHTNESS || level > PM_MAX_BRIGHTNESS)
level = PM_DEFAULT_BRIGHTNESS;
pmsys->def_brt = level;