Fix: possible infinite loop in disable ust event
authorDavid Goulet <dgoulet@efficios.com>
Tue, 25 Jun 2013 19:24:35 +0000 (15:24 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 25 Jun 2013 19:24:35 +0000 (15:24 -0400)
Fixes #575

Signed-off-by: David Goulet <dgoulet@efficios.com>
src/bin/lttng-sessiond/event.c

index 0af7b4cb2f944288a1107b7b6ea50ff2383dcf76..9a8ed63d108696b223876ae0236097bddcd4ec2b 100644 (file)
@@ -527,8 +527,7 @@ int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
 
                if (uevent->enabled == 0) {
                        /* It's already disabled so everything is OK */
-                       ret = LTTNG_OK;
-                       continue;
+                       goto next;
                }
 
                ret = ust_app_disable_event_glb(usess, uchan, uevent);
@@ -541,6 +540,7 @@ int event_ust_disable_tracepoint(struct ltt_ust_session *usess,
                DBG2("Event UST %s disabled in channel %s", uevent->attr.name,
                                uchan->name);
 
+next:
                /* Get next duplicate event by name. */
                cds_lfht_next_duplicate(ht->ht, trace_ust_ht_match_event_by_name,
                                event_name, &iter.iter);
This page took 0.035741 seconds and 4 git commands to generate.