sessiond find_app_by_sock: remove double-rcu-unlock in from error paths
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 13 Nov 2011 17:17:57 +0000 (12:17 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 13 Nov 2011 17:17:57 +0000 (12:17 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-sessiond/ust-app.c

index e22a5929ecf77322a68a48a776b5380e999c4eb4..0cc19481cb6bb722e2b33d8e481cb17a84165d30 100644 (file)
@@ -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;
        }
 
This page took 0.027169 seconds and 4 git commands to generate.