From: Francis Deslauriers Date: Tue, 1 Oct 2019 15:06:30 +0000 (-0400) Subject: Fix: ust-consumer.c: Double unlock of channel lock X-Git-Tag: v2.11.0~20 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=faea2a071f0a08342f954ae3f072c2a3eb5aa252;p=lttng-tools.git Fix: ust-consumer.c: Double unlock of channel lock 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 --- 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.