From 1e3a10e37a519046fd49c77f2fa23807b132f330 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 13 Nov 2011 12:17:57 -0500 Subject: [PATCH 1/1] sessiond find_app_by_sock: remove double-rcu-unlock in from error paths Signed-off-by: Mathieu Desnoyers --- lttng-sessiond/ust-app.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/lttng-sessiond/ust-app.c b/lttng-sessiond/ust-app.c index e22a5929e..0cc19481c 100644 --- a/lttng-sessiond/ust-app.c +++ b/lttng-sessiond/ust-app.c @@ -113,7 +113,6 @@ static struct ust_app *find_app_by_sock(int sock) (void *)((unsigned long) sock), sizeof(void *), &iter); if (node == NULL) { DBG2("UST app find by sock %d key not found", sock); - rcu_read_unlock(); goto error; } @@ -123,7 +122,6 @@ static struct ust_app *find_app_by_sock(int sock) (void *)((unsigned long) key->pid), sizeof(void *), &iter); if (node == NULL) { DBG2("UST app find by sock %d not found", sock); - rcu_read_unlock(); goto error; } -- 2.34.1