Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
event_name = kmalloc(PATH_MAX, GFP_KERNEL);
if (!event_name)
return -ENOMEM;
- if (strncpy_from_user(event_name, uevent_param->name, PATH_MAX)) {
+ if (strncpy_from_user(event_name, uevent_param->name, PATH_MAX) < 0) {
ret = -EFAULT;
goto name_error;
}
transport_name);
goto notransport;
}
- printk("got transport\n");
chan = kzalloc(sizeof(struct ltt_channel), GFP_KERNEL);
if (!chan)
goto nomem;
chan->chan = transport->ops.channel_create("[lttng]", session, buf_addr,
subbuf_size, num_subbuf, switch_timer_interval,
read_timer_interval);
- printk("chan create %p\n", chan->chan);
if (!chan->chan)
goto create_error;
chan->ops = &transport->ops;