From: Mathieu Desnoyers Date: Wed, 20 Jul 2011 21:11:51 +0000 (-0400) Subject: Fix double-unlock in kconsumerd_find_session_fd() X-Git-Tag: v2.0-pre2~12^2 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=bb61c89440b5ed49c3b4a7ea0064eb5e4cac486a;p=lttng-tools.git Fix double-unlock in kconsumerd_find_session_fd() Signed-off-by: Mathieu Desnoyers --- diff --git a/liblttkconsumerd/liblttkconsumerd.c b/liblttkconsumerd/liblttkconsumerd.c index 99bf30eb4..1e86d28d0 100644 --- a/liblttkconsumerd/liblttkconsumerd.c +++ b/liblttkconsumerd/liblttkconsumerd.c @@ -124,7 +124,6 @@ static int kconsumerd_find_session_fd(int fd) cds_list_for_each_entry(iter, &kconsumerd_data.fd_list.head, list) { if (iter->sessiond_fd == fd) { DBG("Duplicate session fd %d", fd); - pthread_mutex_unlock(&kconsumerd_data.lock); return 1; } }