From: Mathieu Desnoyers Date: Tue, 26 Nov 2013 00:40:44 +0000 (-0500) Subject: Fix: handle unknown event type parameter X-Git-Tag: v2.2.4~8 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=9979c1f7cf74db73e7cf182f3b29dbbfecf9427a;p=lttng-modules.git 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 ff937089..f19c7d90 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -401,6 +401,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)