From: Mathieu Desnoyers Date: Tue, 26 Nov 2013 00:40:44 +0000 (-0500) Subject: Fix: handle unknown event type parameter X-Git-Tag: v2.4.0-rc2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=df07930bd2a206d692686c84ba9c6665c2629111;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 0faff849..b0e721ee 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)