Fix: kretprobe: null ptr deref on session destroy
[lttng-modules.git] / lttng-events.c
index 984bd341a162d4d76cf8f2a61ab6c9ae5445353c..3450fa40dbcdb2966f9dac8855d3d4cb0cd1a5ed 100644 (file)
@@ -704,6 +704,8 @@ struct lttng_event *_lttng_event_create(struct lttng_channel *chan,
                event_return->enabled = 0;
                event_return->registered = 1;
                event_return->instrumentation = itype;
+               INIT_LIST_HEAD(&event_return->bytecode_runtime_head);
+               INIT_LIST_HEAD(&event_return->enablers_ref_head);
                /*
                 * Populate lttng_event structure before kretprobe registration.
                 */
This page took 0.022626 seconds and 4 git commands to generate.