Fix event creation
authorMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 8 Dec 2010 20:31:06 +0000 (15:31 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@polymtl.ca>
Wed, 8 Dec 2010 20:31:06 +0000 (15:31 -0500)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
ltt-debugfs-abi.c
ltt-events.c

index d136a779a23a5450817010aa406ce6cdd18866a0..5741eda2c3f8a50950ceb2423eccce43e88f708f 100644 (file)
@@ -268,7 +268,7 @@ int lttng_abi_create_event(struct file *channel_file,
        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;
        }
index 603170682a822dea830830cf0ec155e5651b124b..b8dbec69a2dfb40cb8d38c73092fbf81389c913c 100644 (file)
@@ -124,7 +124,6 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session,
                       transport_name);
                goto notransport;
        }
-       printk("got transport\n");
        chan = kzalloc(sizeof(struct ltt_channel), GFP_KERNEL);
        if (!chan)
                goto nomem;
@@ -133,7 +132,6 @@ struct ltt_channel *ltt_channel_create(struct ltt_session *session,
        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;
This page took 0.02709 seconds and 4 git commands to generate.