From: Mathieu Desnoyers Date: Tue, 26 Nov 2013 00:40:44 +0000 (-0500) Subject: Fix: handle unknown event type parameter X-Git-Tag: v2.3.4~2 X-Git-Url: https://git.lttng.org/?p=lttng-modules.git;a=commitdiff_plain;h=a317b1b044c14d4c180780bf092fe251d1ed8365 Fix: handle unknown event type parameter Skip to an error path if the event type is unknown. Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-events.c b/lttng-events.c index 47f48b2c..5061a050 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -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)