From b7f59a04d41aae00e0801fbc595af304fe362b36 Mon Sep 17 00:00:00 2001 From: Francis Deslauriers Date: Tue, 1 Oct 2019 11:06:30 -0400 Subject: [PATCH] Fix: ust-consumer.c: Double unlock of channel lock MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Coverity report: CID 1404942 (#1 of 1): Double unlock (LOCK) 15. double_unlock: pthread_mutex_unlock unlocks channel->lock while it is unlocked. Reported-by: Coverity (1404942) Double unlock Signed-off-by: Francis Deslauriers Signed-off-by: Jérémie Galarneau --- src/common/ust-consumer/ust-consumer.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/common/ust-consumer/ust-consumer.c b/src/common/ust-consumer/ust-consumer.c index f8706d0ba..46b644d34 100644 --- a/src/common/ust-consumer/ust-consumer.c +++ b/src/common/ust-consumer/ust-consumer.c @@ -2170,7 +2170,6 @@ end_msg_sessiond: end_channel_error: if (channel) { - pthread_mutex_unlock(&channel->lock); /* * Free channel here since no one has a reference to it. We don't * free after that because a stream can store this pointer. -- 2.34.1