diff options
Diffstat (limited to 'kernel/bpf/core.c')
-rw-r--r-- | kernel/bpf/core.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/bpf/core.c b/kernel/bpf/core.c index 2a81b8af3748..1e443ba97310 100644 --- a/kernel/bpf/core.c +++ b/kernel/bpf/core.c | |||
@@ -362,7 +362,8 @@ static int bpf_adj_branches(struct bpf_prog *prog, u32 pos, s32 end_old, | |||
362 | insn = prog->insnsi + end_old; | 362 | insn = prog->insnsi + end_old; |
363 | } | 363 | } |
364 | code = insn->code; | 364 | code = insn->code; |
365 | if (BPF_CLASS(code) != BPF_JMP || | 365 | if ((BPF_CLASS(code) != BPF_JMP && |
366 | BPF_CLASS(code) != BPF_JMP32) || | ||
366 | BPF_OP(code) == BPF_EXIT) | 367 | BPF_OP(code) == BPF_EXIT) |
367 | continue; | 368 | continue; |
368 | /* Adjust offset of jmps if we cross patch boundaries. */ | 369 | /* Adjust offset of jmps if we cross patch boundaries. */ |