if (!ACCESS_ONCE(chan->session->active))
return 0;
- lib_ring_buffer_ctx_init(&ctx, chan->chan, NULL, sizeof(data),
+ lib_ring_buffer_ctx_init(&ctx, chan->chan, event, sizeof(data),
ltt_alignof(data), -1);
ret = chan->ops->event_reserve(&ctx, event->id);
if (ret < 0)