projects
/
platform
/
core
/
api
/
peripheral-io.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7de767f
)
Check validation of pwm handle in the peripheral_pwm_close()
85/129785/2
author
jino.cho
<jino.cho@samsung.com>
Thu, 18 May 2017 05:59:20 +0000
(14:59 +0900)
committer
jino.cho
<jino.cho@samsung.com>
Thu, 18 May 2017 06:31:49 +0000
(15:31 +0900)
Change-Id: I0b8ae08011188087819365a2dc5cd40bb6b14f39
Signed-off-by: jino.cho <jino.cho@samsung.com>
src/peripheral_pwm.c
patch
|
blob
|
history
diff --git
a/src/peripheral_pwm.c
b/src/peripheral_pwm.c
index
2b9c1a9
..
ecb9b4a
100644
(file)
--- a/
src/peripheral_pwm.c
+++ b/
src/peripheral_pwm.c
@@
-58,6
+58,8
@@
int peripheral_pwm_close(peripheral_pwm_h pwm)
{
int ret = PERIPHERAL_ERROR_NONE;
+ if (pwm == NULL) return PERIPHERAL_ERROR_INVALID_PARAMETER;
+
ret = peripheral_gdbus_pwm_close(pwm);
pwm_proxy_deinit();