bpf, x86: Adjust arch_prepare_bpf_trampoline return value
[linux-2.6-microblaze.git] / arch / x86 / net / bpf_jit_comp.c
index 8c10d9a..5f7528c 100644 (file)
@@ -2671,7 +2671,7 @@ int arch_prepare_bpf_trampoline(struct bpf_tramp_image *im, void *image, void *i
                ret = -EFAULT;
                goto cleanup;
        }
-       ret = prog - (u8 *)image;
+       ret = prog - (u8 *)image + BPF_INSN_SAFETY;
 
 cleanup:
        kfree(branches);