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:
de93572
)
plugin: display: Add check NULL dereference
93/297693/1
author
Yunhee Seo
<yuni.seo@samsung.com>
Wed, 23 Aug 2023 03:07:50 +0000
(12:07 +0900)
committer
Yunhee Seo
<yuni.seo@samsung.com>
Wed, 23 Aug 2023 03:07:50 +0000
(12:07 +0900)
Fix static analysis NULL dereference issue.
Change-Id: I62328d142f4095d6687441b0a777549502be5f20
Signed-off-by: Yunhee Seo <yuni.seo@samsung.com>
src/display/display.c
patch
|
blob
|
history
diff --git
a/src/display/display.c
b/src/display/display.c
index a107188243cca058d9effd478940f0392db10031..89c34d0571a8686833553c1b1527ec3e5c62a910 100644
(file)
--- a/
src/display/display.c
+++ b/
src/display/display.c
@@
-401,7
+401,7
@@
static void lcd_uevent_changed(struct udev_device *dev)
if (!fnmatch(LCD_ESD_PATH, devpath, 0)) {
action = udev_device_get_action(dev);
- if (!strcmp(action, UDEV_CHANGE))
+ if (
action &&
!strcmp(action, UDEV_CHANGE))
esd_action();
}
}