path: root/kernel/bpf/core.c
diff options
authorRusty Russell <>2015-01-20 09:07:05 +1030
committerRusty Russell <>2015-01-20 11:38:33 +1030
commitbe1f221c0445a4157d177197c236f888d3581914 (patch)
treef823a0f9cab00723043d8c27f11d23f9e0c9a592 /kernel/bpf/core.c
parentd453cded05ee219b77815ea194dc36efa5398bca (diff)
module: remove mod arg from module_free, rename module_memfree().
Nothing needs the module pointer any more, and the next patch will call it from RCU, where the module itself might no longer exist. Removing the arg is the safest approach. This just codifies the use of the module_alloc/module_free pattern which ftrace and bpf use. Signed-off-by: Rusty Russell <> Acked-by: Alexei Starovoitov <> Cc: Mikael Starvik <> Cc: Jesper Nilsson <> Cc: Ralf Baechle <> Cc: Ley Foon Tan <> Cc: Benjamin Herrenschmidt <> Cc: Chris Metcalf <> Cc: Steven Rostedt <> Cc: Cc: Ananth N Mavinakayanahalli <> Cc: Anil S Keshavamurthy <> Cc: Masami Hiramatsu <> Cc: Cc: Cc: Cc: Cc: Cc: Cc:
Diffstat (limited to 'kernel/bpf/core.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c
index d6594e457a25..a64e7a207d2b 100644
--- a/kernel/bpf/core.c
+++ b/kernel/bpf/core.c
@@ -163,7 +163,7 @@ bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr,
void bpf_jit_binary_free(struct bpf_binary_header *hdr)
- module_free(NULL, hdr);
+ module_memfree(hdr);
#endif /* CONFIG_BPF_JIT */