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:21:21 +0000 (15:21 -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 56dbef2aa4326c8a4067ecc96ada66b887358afd..8c0b76868a63040943ab3154a4d246b772753271 100644 (file)
@@ -61,7 +61,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.024628 seconds and 4 git commands to generate.