net: bpf: arm64: minor fix of type in jited
authorDaniel Borkmann <dborkman@redhat.com>
Sat, 11 Oct 2014 09:00:43 +0000 (10:00 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 20 Oct 2014 16:47:04 +0000 (17:47 +0100)
Commit 286aad3c4014 ("net: bpf: be friendly to kmemcheck") changed the
type of jited from a bitfield into a bool. As this commmit wasn't available
at the time when arm64 eBPF JIT was merged, fix it up now as net is merged
into mainline.

Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Cc: Zi Shen Lim <zlim.lnx@gmail.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/net/bpf_jit_comp.c

index 618d2cd..41f1e3e 100644 (file)
@@ -722,7 +722,7 @@ void bpf_int_jit_compile(struct bpf_prog *prog)
 
        set_memory_ro((unsigned long)header, header->pages);
        prog->bpf_func = (void *)ctx.image;
-       prog->jited = 1;
+       prog->jited = true;
 out:
        kfree(ctx.offset);
 }