Blame SOURCES/0004-init_thread_func-fix-deadlock.patch

cbf305
From 545287019c1b9689c92900330be058b5ab9cf5d6 Mon Sep 17 00:00:00 2001
cbf305
From: William Roberts <william.c.roberts@intel.com>
cbf305
Date: Wed, 13 Jan 2021 15:11:42 -0600
cbf305
Subject: [PATCH 4/6] init_thread_func: fix deadlock
cbf305
cbf305
The caller locks the mutex and never releases on the error path, only
cbf305
the success path.
cbf305
cbf305
Signed-off-by: William Roberts <william.c.roberts@intel.com>
cbf305
---
cbf305
 src/tabrmd-init.c | 1 +
cbf305
 1 file changed, 1 insertion(+)
cbf305
cbf305
diff --git a/src/tabrmd-init.c b/src/tabrmd-init.c
cbf305
index 866c852..ea71155 100644
cbf305
--- a/src/tabrmd-init.c
cbf305
+++ b/src/tabrmd-init.c
cbf305
@@ -249,6 +249,7 @@ init_thread_func (gpointer user_data)
cbf305
     return GINT_TO_POINTER (0);
cbf305
 
cbf305
 err_out:
cbf305
+    g_mutex_unlock (&data->init_mutex);
cbf305
     g_debug ("%s: calling gmain_data_cleanup", __func__);
cbf305
     gmain_data_cleanup (data);
cbf305
     return GINT_TO_POINTER (ret);
cbf305
-- 
cbf305
2.34.3
cbf305