Fix init bug
[lttng-modules.git] / 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.025126 seconds and 4 git commands to generate.