X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=lttng-events.c;h=879097b4a8c7af056c0f0ec57dbef4d9376e7c57;hb=3b731ab1a88c60e0a3a8eeddd225f751e821b1f3;hp=4b891cd5ecda22e8778f5a4592f19c9e2574172f;hpb=ed8d02d6a3d1dae8e7ecbda764202a0316b5ea6f;p=lttng-modules.git diff --git a/lttng-events.c b/lttng-events.c index 4b891cd5..879097b4 100644 --- a/lttng-events.c +++ b/lttng-events.c @@ -285,6 +285,7 @@ struct lttng_channel *lttng_channel_create(struct lttng_session *session, goto nomem; chan->session = session; chan->id = session->free_chan_id++; + chan->ops = &transport->ops; /* * Note: the channel creation op already writes into the packet * headers. Therefore the "chan" information used as input @@ -296,7 +297,6 @@ struct lttng_channel *lttng_channel_create(struct lttng_session *session, if (!chan->chan) goto create_error; chan->enabled = 1; - chan->ops = &transport->ops; chan->transport = transport; chan->channel_type = channel_type; list_add(&chan->list, &session->chan);