From: Mathieu Desnoyers Date: Wed, 24 Dec 2014 17:10:01 +0000 (-0500) Subject: Fix: add missing RCU read unlock X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=69d8ecd9c336ab347546956818ac73ac70202ccd;p=lttng-tools.git Fix: add missing RCU read unlock Master commit 24eb8569dc841f318d7964ca9a0ad0a4f9508a8e "Fix: Missing RCU read locks in syscall_list_channel()" Introduces unbalanced RCU read-side lock/unlock. Should be applied to master and stable-2.6. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng-sessiond/syscall.c b/src/bin/lttng-sessiond/syscall.c index c38f89109..bfe32ac73 100644 --- a/src/bin/lttng-sessiond/syscall.c +++ b/src/bin/lttng-sessiond/syscall.c @@ -409,6 +409,7 @@ ssize_t syscall_list_channel(struct ltt_kernel_channel *kchan, ksyscall = lookup_syscall(syscalls_ht, syscall_table[i].name); if (ksyscall) { update_event_syscall_bitness(events, i, ksyscall->index); + rcu_read_unlock(); continue; } ksyscall = NULL;