]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - kernel/kprobes.c
Fix race between rmmod and cat /proc/kallsyms
[linux-2.6-omap-h63xx.git] / kernel / kprobes.c
index d25a9ada3f8eb57c8b6ab2ac43e7123fb49ffa9f..0207045b4f6ff1d7a3157e3a0bce6ff55681559c 100644 (file)
 #include <linux/hash.h>
 #include <linux/init.h>
 #include <linux/slab.h>
+#include <linux/stddef.h>
 #include <linux/module.h>
 #include <linux/moduleloader.h>
 #include <linux/kallsyms.h>
 #include <linux/freezer.h>
 #include <linux/seq_file.h>
 #include <linux/debugfs.h>
+#include <linux/kdebug.h>
 #include <asm-generic/sections.h>
 #include <asm/cacheflush.h>
 #include <asm/errno.h>
-#include <asm/kdebug.h>
 
 #define KPROBE_HASH_BITS 6
 #define KPROBE_TABLE_SIZE (1 << KPROBE_HASH_BITS)
@@ -912,7 +913,7 @@ static int __kprobes debugfs_kprobe_init(void)
        if (!dir)
                return -ENOMEM;
 
-       file = debugfs_create_file("list", 0444, dir , 0 ,
+       file = debugfs_create_file("list", 0444, dir, NULL,
                                &debugfs_kprobes_operations);
        if (!file) {
                debugfs_remove(dir);