projects
/
platform
/
hal
/
api
/
common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
21e5da8
)
halapi: Fix unlock issue when failed to parse hal-api.json
99/254699/1
accepted/tizen/unified/20210309.140641
submit/tizen/20210308.095802
author
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 8 Mar 2021 09:44:47 +0000
(18:44 +0900)
committer
Chanwoo Choi
<cw00.choi@samsung.com>
Mon, 8 Mar 2021 09:44:47 +0000
(18:44 +0900)
There is deadlock issue without unlocking the mutex
when error happen. So that fix the unlock issue.
Change-Id: I4581202808f9b6f9b8b36c452663be1e59c4e7af
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
src/hal-api-common.c
patch
|
blob
|
history
diff --git
a/src/hal-api-common.c
b/src/hal-api-common.c
index
cf5c3fd
..
4bf3dc4
100644
(file)
--- a/
src/hal-api-common.c
+++ b/
src/hal-api-common.c
@@
-157,8
+157,10
@@
int hal_common_get_backend(enum hal_module module, void **data)
G_LOCK(hal_common_lock);
- if (_hal_api_conf_init())
- return TIZEN_ERROR_UNKNOWN;
+ if (_hal_api_conf_init()) {
+ ret = TIZEN_ERROR_UNKNOWN;
+ goto err;
+ }
info = _hal_api_conf_get_module_info(module);
if (info == NULL) {