Fix: remove unlock in getcpu
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Sep 2016 19:20:41 +0000 (15:20 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 2 Sep 2016 19:20:41 +0000 (15:20 -0400)
Causes unbalanced RCU read-side lock if nesting safety net is triggered.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
libringbuffer/frontend_api.h

index 77a269184fcf1f3dbc26380f7e2e201cd25bd497..93f6760b28b938238171dda1cb3bd395352d362e 100644 (file)
@@ -60,7 +60,6 @@ int lib_ring_buffer_get_cpu(const struct lttng_ust_lib_ring_buffer_config *confi
        if (caa_unlikely(nesting > 4)) {
                WARN_ON_ONCE(1);
                URCU_TLS(lib_ring_buffer_nesting)--;
-               rcu_read_unlock();
                return -EPERM;
        } else
                return cpu;
This page took 0.025197 seconds and 4 git commands to generate.