From 255e52a4f2d85eee50e5cde6436279ef74e61996 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Sun, 22 Jan 2012 16:22:24 -0500 Subject: [PATCH] Fix init bug Fix reversed logic bug introduced by commit 80996790fa42072d6525f2adb9a910312077bef6 Signed-off-by: Mathieu Desnoyers --- lttng-abi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1