From: Jérémie Galarneau Date: Tue, 9 Feb 2021 21:04:05 +0000 (-0500) Subject: Fix: sessiond: trace-kernel: function return code overwritten X-Git-Tag: v2.13.0-rc1~345 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=366a83b3757c2adb764f2fab95247d5c0d1cf668;hp=366a83b3757c2adb764f2fab95247d5c0d1cf668;ds=sidebyside Fix: sessiond: trace-kernel: function return code overwritten A string copy, performed using `lttng_strncpy` is performed at the end of trace_kernel_init_event_notifier_from_event_rule() and its return value is stored in the function's `ret` variable, which is of type `enum lttng_error_code`. Since LTTNG_OK is not == 0, the return value is interpreted as an error, which causes the registration of kernel-domain on-event-hit triggers to fail. Signed-off-by: Jérémie Galarneau Change-Id: Ia0bf6eb3d2a4fca8f9089ecd4fef7a311354560c ---