From 03ab175e9d4b853cf38163d69a3b5b89cbd97248 Mon Sep 17 00:00:00 2001 From: Utz-Uwe Haus Date: Tue, 11 May 2021 15:58:16 +0000 Subject: [PATCH] add a missing mutex unlock in remote config block read --- maestro/ofi.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/maestro/ofi.c b/maestro/ofi.c index 72a1572d..a74364a3 100644 --- a/maestro/ofi.c +++ b/maestro/ofi.c @@ -2110,6 +2110,13 @@ mstro_ofi__select_endpoint(struct mstro_endpoint_descriptor_ *remote, stat = MSTRO_FAIL; goto BAILOUT; } + + ret = pthread_mutex_unlock(&ctx->lock); + if(ret!=0) { + ERR("Failed to unlock msg context lock: %d (%s)\n", ret, strerror(ret)); + stat = MSTRO_FAIL; + goto BAILOUT; + } DEBUG("Found remote config block (%s). type %" PRIu64 ", protocol version: %d.%d.%d, workflow: %s, component: %s\n", g_pm_component_descriptor.version, g_pm_component_descriptor.type, -- GitLab