Fix: sessiond: silent kernel notifier registration error
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 14 Apr 2023 18:39:05 +0000 (14:39 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 1 Jun 2023 00:32:32 +0000 (20:32 -0400)
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 <jeremie.galarneau@efficios.com>
Change-Id: I9261ad7131b1b53152fe8960f17a6fca7029440f

src/bin/lttng-sessiond/cmd.c

index 87676b0e79dd6a00194dfde2ccbe5d9e6ec48139..3adbbebcad1f46137838f6f95238a856815729f9 100644 (file)
@@ -4519,6 +4519,8 @@ enum lttng_error_code synchronize_tracer_notifier_register(
                                                (int) trigger_owner,
                                                ret_code);
                        }
+
+                       goto end_unlock_session_list;
                }
                break;
        }
This page took 0.027592 seconds and 4 git commands to generate.