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>
Mon, 17 Apr 2023 17:49:52 +0000 (13:49 -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.cpp

index 203ffb14652880478fd0843e91aa0a75d22c3de5..e89bcd15ebb49fad7d5c0348df4f4ee6188a5722 100644 (file)
@@ -4468,6 +4468,8 @@ synchronize_tracer_notifier_register(struct notification_thread_handle *notifica
                                    (int) trigger_owner,
                                    ret_code);
                        }
+
+                       goto end_unlock_session_list;
                }
                break;
        }
This page took 0.044378 seconds and 4 git commands to generate.