Fix: consumer: double unlock of rcu read lock on error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 16 Oct 2019 16:35:23 +0000 (12:35 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 17 Oct 2019 15:16:36 +0000 (11:16 -0400)
commit03304e370fdf281fef8df4a0faa2bc3d1d15eadc
treef4b8eaec7e748e631a07e6ca6276b17fba24a8d8
parent56c23a6713914d9fa898c1a3fe80e21b3e73eef9
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 <jeremie.galarneau@efficios.com>
src/common/consumer/consumer.c
This page took 0.025152 seconds and 4 git commands to generate.