Fix: NULL pointer dereference of THIS_MODULE with built-in modules
[lttng-modules.git] / wrapper / writeback.h
index 492cb75f94a5ac7a2e15c670ff33b559ed5c6dbe..cdcbd58444e0efbd8c3cca8cea04d6332c83f540 100644 (file)
@@ -28,7 +28,7 @@
 #ifdef CONFIG_KALLSYMS_ALL
 
 #include <linux/kallsyms.h>
-#include "kallsyms.h"
+#include <wrapper/kallsyms.h>
 
 static unsigned long *global_dirty_limit_sym;
 
@@ -41,7 +41,7 @@ unsigned long wrapper_global_dirty_limit(void)
        if (global_dirty_limit_sym) {
                return *global_dirty_limit_sym;
        } else {
-               printk(KERN_WARNING "LTTng: global_dirty_limit symbol lookup failed.\n");
+               printk_once(KERN_WARNING "LTTng: global_dirty_limit symbol lookup failed.\n");
                return 0;
        }
 }
This page took 0.022748 seconds and 4 git commands to generate.