From: Jérémie Galarneau Date: Wed, 16 Oct 2019 16:35:23 +0000 (-0400) Subject: Fix: consumer: double unlock of rcu read lock on error X-Git-Tag: v2.12.0-rc1~307 X-Git-Url: http://git.lttng.org/?a=commitdiff_plain;h=13e3b28009f1f922da6021e43254db86b78aa109;hp=13e3b28009f1f922da6021e43254db86b78aa109;p=lttng-tools.git Fix: consumer: double unlock of rcu read lock on error Commit 6b584c2e changed the implementation of the "trace_chunk_exists" command to use the then-new "exists" method of the trace chunk registry. Before this change, the trace chunks were looked-up to check for their existence. Since the "exists" method doesn't require the caller to hold the rcu read lock, it is acquired later on in the function. However, the rcu read lock is still released on error when this function fails, resulting in a double-unlock. Signed-off-by: Jérémie Galarneau ---