]> 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:41:22 +0000 (19:41 -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 0faff8498df3d61eb972415a4b1c1336ccce20a4..b0e721ee5bcfa2c7917e8b937665f573c4770f37 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.030992 seconds and 4 git commands to generate.