From: Mathieu Desnoyers Date: Tue, 24 May 2011 17:22:35 +0000 (-0400) Subject: Add missing mutex to event list X-Git-Tag: v2.0-pre1~94 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=cbd4ecb28a17e4e8888affb573bd3f7a2cae874a;p=lttng-modules.git Add missing mutex to event list Signed-off-by: Mathieu Desnoyers --- diff --git a/ltt-probes.c b/ltt-probes.c index 249fc333..ab4b349e 100644 --- a/ltt-probes.c +++ b/ltt-probes.c @@ -90,6 +90,7 @@ void *tp_list_start(struct seq_file *m, loff_t *pos) struct lttng_probe_desc *probe_desc; int iter = 0, i; + mutex_lock(&probe_mutex); list_for_each_entry(probe_desc, &probe_list, head) { for (i = 0; i < probe_desc->nr_events; i++) { if (iter++ >= *pos) @@ -120,6 +121,7 @@ void *tp_list_next(struct seq_file *m, void *p, loff_t *ppos) static void tp_list_stop(struct seq_file *m, void *p) { + mutex_unlock(&probe_mutex); } static