From: Jérémie Galarneau Date: Fri, 14 Apr 2023 18:39:05 +0000 (-0400) Subject: Fix: sessiond: silent kernel notifier registration error X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=7ebbf3f02689e6d437206297230cbf264f67e3be Fix: sessiond: silent kernel notifier registration error When a kernel notifier fails to be registered, the error is silently ignored because of a missing jump to the error label. This was noticed while debugging an unrelated problem where the kernel tracer would fail to add a userspace probe to a semaphore-protected SDT probe. Signed-off-by: Jérémie Galarneau Change-Id: I9261ad7131b1b53152fe8960f17a6fca7029440f --- diff --git a/src/bin/lttng-sessiond/cmd.cpp b/src/bin/lttng-sessiond/cmd.cpp index 203ffb146..e89bcd15e 100644 --- a/src/bin/lttng-sessiond/cmd.cpp +++ b/src/bin/lttng-sessiond/cmd.cpp @@ -4468,6 +4468,8 @@ synchronize_tracer_notifier_register(struct notification_thread_handle *notifica (int) trigger_owner, ret_code); } + + goto end_unlock_session_list; } break; }