Fix: use after free on metadata cache reallocation
[lttng-modules.git] / lttng-events.h
index 4d9bdfd0574390da27f7177c26d561683ae3c553..484534c4272948208a0b426468282c9ae78d8873 100644 (file)
@@ -415,7 +415,6 @@ struct lttng_metadata_stream {
        wait_queue_head_t read_wait;    /* Reader buffer-level wait queue */
        struct list_head list;          /* Stream list */
        struct lttng_transport *transport;
-       struct mutex lock;
 };
 
 
@@ -461,6 +460,7 @@ struct lttng_metadata_cache {
        struct kref refcount;           /* Metadata cache usage */
        struct list_head metadata_stream;       /* Metadata stream list */
        uuid_le uuid;                   /* Trace session unique ID (copy) */
+       struct mutex lock;
 };
 
 void lttng_lock_sessions(void);
This page took 0.024061 seconds and 4 git commands to generate.