Fix mutex name 72/223072/1
authorsooyeon.kim <sooyeon.kim@samsung.com>
Mon, 20 Jan 2020 01:35:16 +0000 (10:35 +0900)
committerWonnam Jang <wn.jang@samsung.com>
Wed, 22 Jan 2020 13:33:14 +0000 (13:33 +0000)
Change-Id: I56b715c53d7c8c525347a7dfc85f18c3514a977d
Signed-off-by: sooyeon.kim <sooyeon.kim@samsung.com>
(cherry picked from commit bc220259cd31cee10b1f71941078517df793ff8d)

common/vc_config_mgr.c

index 44ea696fedae7ffe10691799bdfade329ed72aa4..8dda6b7c46d0c1f4e8eaf4b51c20fc88561f494c 100644 (file)
@@ -535,16 +535,16 @@ static int __vc_config_mgr_register_engine_config_updated_event(const char* path
                SLOG(LOG_WARN, vc_config_tag(), "[WARNING] Fail to set non-block mode");
        }
 
-       pthread_mutex_lock(&vc_config_mgr_mutex);
+       pthread_mutex_lock(&vc_config_engine_mutex);
        g_ino_list = g_list_append(g_ino_list, ino);
-       pthread_mutex_unlock(&vc_config_mgr_mutex);
+       pthread_mutex_unlock(&vc_config_engine_mutex);
 
        return 0;
 }
 
 static int __vc_config_mgr_unregister_engine_config_updated_event()
 {
-       pthread_mutex_lock(&vc_config_mgr_mutex);
+       pthread_mutex_lock(&vc_config_engine_mutex);
 
        /* delete all inotify variable */
        if (0 < g_list_length(g_ino_list)) {
@@ -568,7 +568,7 @@ static int __vc_config_mgr_unregister_engine_config_updated_event()
                        iter = g_list_first(g_ino_list);
                }
        }
-       pthread_mutex_unlock(&vc_config_mgr_mutex);
+       pthread_mutex_unlock(&vc_config_engine_mutex);
        return 0;
 }