kprobes: tracing/kprobes: Fix to kill kprobes on initmem after boot
[sfrench/cifs-2.6.git] / init / main.c
index ae78fb68d2310543b8d5435ba1bb31d9e4c3c6d2..038128b2a755176d2e91c92aabaa59913851f4a1 100644 (file)
@@ -33,6 +33,7 @@
 #include <linux/nmi.h>
 #include <linux/percpu.h>
 #include <linux/kmod.h>
+#include <linux/kprobes.h>
 #include <linux/vmalloc.h>
 #include <linux/kernel_stat.h>
 #include <linux/start_kernel.h>
@@ -1402,6 +1403,7 @@ static int __ref kernel_init(void *unused)
        kernel_init_freeable();
        /* need to finish all async __init code before freeing the memory */
        async_synchronize_full();
+       kprobe_free_init_mem();
        ftrace_free_init_mem();
        free_initmem();
        mark_readonly();