Fix init bug
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 22 Jan 2012 21:22:24 +0000 (16:22 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sun, 22 Jan 2012 21:22:24 +0000 (16:22 -0500)
Fix reversed logic bug introduced by commit
80996790fa42072d6525f2adb9a910312077bef6

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
lttng-abi.c

index d15e3f83a66a68af207820b0c5f6770ba67d12b5..2b673776b44ce2e2a36c2567668ec297e1d99bd3 100644 (file)
@@ -752,7 +752,7 @@ int __init lttng_abi_init(void)
        lttng_proc_dentry = proc_create_data("lttng", S_IWUSR, NULL,
                                        &lttng_fops, NULL);
        
-       if (lttng_proc_dentry) {
+       if (!lttng_proc_dentry) {
                printk(KERN_ERR "Error creating LTTng control file\n");
                ret = -ENOMEM;
                goto error;
This page took 0.026442 seconds and 4 git commands to generate.