[PATCH] arm: bpf_jit: fixup build error in seccomp_jit_free

From: Daniel Borkmann
Date: Wed May 22 2013 - 05:12:31 EST


bpf_jit_free_worker() no longer exist, so get seccomp_jit_free()
in line with bpf_jit_free().

Signed-off-by: Daniel Borkmann <dborkman@xxxxxxxxxx>
---
arch/arm/net/bpf_jit_32.c | 13 ++-----------
1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/arch/arm/net/bpf_jit_32.c b/arch/arm/net/bpf_jit_32.c
index 62aca35..3fe001d 100644
--- a/arch/arm/net/bpf_jit_32.c
+++ b/arch/arm/net/bpf_jit_32.c
@@ -969,18 +969,9 @@ void seccomp_jit_compile(struct seccomp_filter *fp)

void seccomp_jit_free(struct seccomp_filter *fp)
{
- struct work_struct *work;
void *bpf_func = seccomp_filter_get_bpf_func(fp);

- if (bpf_func != sk_run_filter) {
- /*
- * seccomp_jit_free() can be called from softirq; module_free()
- * requires process context.
- */
- work = (struct work_struct *)bpf_func;
-
- INIT_WORK(work, bpf_jit_free_worker);
- schedule_work(work);
- }
+ if (bpf_func != sk_run_filter)
+ module_free(NULL, bpf_func);
}
#endif
--
1.7.11.7


--------------040407090900060402060109--
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/