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:
cf73c0c
)
display: Fix missing condition for looping dpms_context
78/313578/1
accepted/tizen/unified/20240701.055750
accepted/tizen/unified/dev/20240702.054036
accepted/tizen/unified/x/20240701.102735
author
Youngjae Cho
<y0.cho@samsung.com>
Fri, 28 Jun 2024 05:24:03 +0000
(14:24 +0900)
committer
Youngjae Cho
<y0.cho@samsung.com>
Fri, 28 Jun 2024 05:25:50 +0000
(14:25 +0900)
If (dpms_context == NULL) then, it iterates over the default context,
which might cause undefined behavior.
Change-Id: I222a8c798a332c3a93e89253bd4f586bbc4dcf08
Signed-off-by: Youngjae Cho <y0.cho@samsung.com>
src/display/display-dpms.c
patch
|
blob
|
history
diff --git
a/src/display/display-dpms.c
b/src/display/display-dpms.c
index ff5a2681cc563730bb279230c288a84e3f6bd86e..57d0e911e90bc8dbb2fafc621d04fac0bb07dfc7 100644
(file)
--- a/
src/display/display-dpms.c
+++ b/
src/display/display-dpms.c
@@
-508,7
+508,7
@@
static void wm_dpms_set_state(int on)
uint32_t mode;
// clear pending events
- while (g_main_context_pending(dpms_context))
+ while (
dpms_context &&
g_main_context_pending(dpms_context))
g_main_context_iteration(dpms_context, true);
if (!dpms_is_available()) {