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:23 +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 ff937089b7e89618eb62f81ae8146223f43e2ba7..f19c7d9060e0d760ca68cd84b2a24d8bb8a50311 100644 (file)
@@ -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)
This page took 0.027281 seconds and 4 git commands to generate.