projects
/
platform
/
core
/
api
/
usb-host.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fde9dd0
)
fix not to change the output parameter when an error occurs
65/100965/1
accepted/tizen/3.0/common/20161201.135137
accepted/tizen/3.0/ivi/20161201.031525
accepted/tizen/3.0/mobile/20161201.031402
accepted/tizen/3.0/tv/20161201.031438
submit/tizen_3.0/20161130.101437
author
taeyoung
<ty317.kim@samsung.com>
Wed, 30 Nov 2016 04:18:20 +0000
(13:18 +0900)
committer
taeyoung
<ty317.kim@samsung.com>
Wed, 30 Nov 2016 04:18:20 +0000
(13:18 +0900)
Change-Id: Ic809be983c09a80a07103b5b1c5554cc48e48aba
Signed-off-by: taeyoung <ty317.kim@samsung.com>
src/usb_host.c
patch
|
blob
|
history
diff --git
a/src/usb_host.c
b/src/usb_host.c
index 7da0d1f6ca39150212db0977494fd9d3f5ce2cd6..764f8f182bbae42f2e9c6b65aa9f0a64294e7900 100644
(file)
--- a/
src/usb_host.c
+++ b/
src/usb_host.c
@@
-728,6
+728,7
@@
int usb_host_get_active_config(usb_host_device_h dev, usb_host_config_h *config)
if (ret != 0) {
_E("dump_config_desc() failed"); //LCOV_EXCL_LINE
free(cfg); //LCOV_EXCL_LINE
+ goto free_lcfg_desc; //LCOV_EXCL_LINE System Error
}
*config = cfg;
@@
-1452,6
+1453,7
@@
int usb_host_device_get_config(usb_host_device_h dev, int config_index, usb_host
if (ret != 0) {
_E("dump_config_desc() failed");
free(cfg);
+ goto free_lcfg_desc; //LCOV_EXCL_LINE System Error
}
*config = cfg;