From: Mathieu Desnoyers Date: Sun, 13 Nov 2011 17:17:57 +0000 (-0500) Subject: sessiond find_app_by_sock: remove double-rcu-unlock in from error paths X-Git-Tag: v2.0-pre15~130 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=1e3a10e37a519046fd49c77f2fa23807b132f330;p=lttng-tools.git sessiond find_app_by_sock: remove double-rcu-unlock in from error paths Signed-off-by: Mathieu Desnoyers --- 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; }