From fffd5b5bcf81510dcb890e1d34df3dd55964e998 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=A9mie=20Galarneau?= Date: Fri, 14 Apr 2023 14:39:05 -0400 Subject: [PATCH] Fix: sessiond: silent kernel notifier registration error MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/bin/lttng-sessiond/cmd.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/bin/lttng-sessiond/cmd.c b/src/bin/lttng-sessiond/cmd.c index 87676b0e7..3adbbebca 100644 --- a/src/bin/lttng-sessiond/cmd.c +++ b/src/bin/lttng-sessiond/cmd.c @@ -4519,6 +4519,8 @@ enum lttng_error_code synchronize_tracer_notifier_register( (int) trigger_owner, ret_code); } + + goto end_unlock_session_list; } break; } -- 2.34.1