Fix: handle unknown event type parameter
[lttng-modules.git] / 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.023076 seconds and 4 git commands to generate.