projects
/
platform
/
core
/
connectivity
/
mtp-responder.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4274181
)
Fix ASAN bug
46/198946/1
submit/tizen/20190131.094229
author
Jihoon Jung
<jh8801.jung@example.com>
Thu, 31 Jan 2019 07:45:02 +0000
(16:45 +0900)
committer
Jihoon Jung
<jh8801.jung@samsung.com>
Thu, 31 Jan 2019 07:46:52 +0000
(16:46 +0900)
- Fix race condition using mutex
Change-Id: I2bd5205a1033fbbd2dc53786c2165af2a8b4f891
Signed-off-by: Jihoon Jung <jh8801.jung@example.com>
src/mtp_init.c
patch
|
blob
|
history
diff --git
a/src/mtp_init.c
b/src/mtp_init.c
index
f5abc88
..
8f767ec
100644
(file)
--- a/
src/mtp_init.c
+++ b/
src/mtp_init.c
@@
-94,7
+94,9
@@
static void __mtp_exit(void)
static gboolean __check_internal_storage(gpointer user_data)
{
+ UTIL_LOCK_MUTEX(&g_cmd_inoti_mutex);
_handle_lock_status_notification(NULL, NULL);
+ UTIL_UNLOCK_MUTEX(&g_cmd_inoti_mutex);
return true;
}