]> git.lttng.org Git - lttng-modules.git/commitdiff
Fix: handle unknown event type parameter
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Nov 2013 00:40:44 +0000 (19:40 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 26 Nov 2013 00:43:20 +0000 (19:43 -0500)
Skip to an error path if the event type is unknown.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-events.c

index 47f48b2cce824ddc2fe94ef101a3150dab78675f..5061a050ce1f7e7453fce3721998e75f0fcadaad 100644 (file)
@@ -466,6 +466,7 @@ struct lttng_event *lttng_event_create(struct lttng_channel *chan,
                break;
        default:
                WARN_ON_ONCE(1);
+               goto register_error;
        }
        ret = _lttng_event_metadata_statedump(chan->session, chan, event);
        if (ret)
This page took 0.03146 seconds and 4 git commands to generate.