Skip to contentSkip to conversation

net: bpf: arm64: minor fix of type in jited

PATCH New Daniel Borkmann 1 participant 1 message Oct 11, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: bpf: arm64: minor fix of type in jited

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.

---
On top of "[PATCH arm64-next v4] net: bpf: arm64: address randomize and write protect JIT code".

 arch/arm64/net/bpf_jit_comp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/net/bpf_jit_comp.c +1 -1
index d97e729..d005f26 100644
@@ -678,7 +678,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);
 }
Signature · 1 line
1.7.11.7