Fix: cpu-id context should use int type
[lttng-modules.git] / lttng-events.c
index 053f125fa313a56d048fc5c0cd4c5ccff8e6526a..7eec04c0f269682a1aed08bbc501a9a992a127ea 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/anon_inodes.h>
 #include "wrapper/file.h"
 #include <linux/jhash.h>
+#include <linux/uaccess.h>
 
 #include "wrapper/uuid.h"
 #include "wrapper/vmalloc.h"   /* for wrapper_vmalloc_sync_all() */
@@ -643,7 +644,6 @@ struct lttng_event *_lttng_event_create(struct lttng_channel *chan,
        }
        hlist_add_head(&event->hlist, head);
        list_add(&event->list, &chan->session->events);
-       mutex_unlock(&sessions_mutex);
        return event;
 
 statedump_error:
This page took 0.023614 seconds and 4 git commands to generate.