From: Mathieu Desnoyers Date: Sun, 22 Jan 2012 21:22:24 +0000 (-0500) Subject: Fix init bug X-Git-Tag: v2.0-pre12~12 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=255e52a4f2d85eee50e5cde6436279ef74e61996;p=lttng-modules.git Fix init bug Fix reversed logic bug introduced by commit 80996790fa42072d6525f2adb9a910312077bef6 Signed-off-by: Mathieu Desnoyers --- diff --git a/lttng-abi.c b/lttng-abi.c index d15e3f83..2b673776 100644 --- a/lttng-abi.c +++ b/lttng-abi.c @@ -752,7 +752,7 @@ int __init lttng_abi_init(void) lttng_proc_dentry = proc_create_data("lttng", S_IWUSR, NULL, <tng_fops, NULL); - if (lttng_proc_dentry) { + if (!lttng_proc_dentry) { printk(KERN_ERR "Error creating LTTng control file\n"); ret = -ENOMEM; goto error;