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