diff options
author | Menglong Dong <dong.menglong@zte.com.cn> | 2021-01-27 05:25:07 +0300 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2021-01-28 00:23:46 +0300 |
commit | 60e578e82b7d73fbd9a0966e8fc70a95d8e12e13 (patch) | |
tree | f6c6eda1e4e2d243e688893543832e25dfd31ed2 /kernel | |
parent | 86ce322d21eb032ed8fdd294d0fb095d2debb430 (diff) | |
download | linux-60e578e82b7d73fbd9a0966e8fc70a95d8e12e13.tar.xz |
bpf: Change 'BPF_ADD' to 'BPF_AND' in print_bpf_insn()
This 'BPF_ADD' is duplicated, and I belive it should be 'BPF_AND'.
Fixes: 981f94c3e921 ("bpf: Add bitwise atomic instructions")
Signed-off-by: Menglong Dong <dong.menglong@zte.com.cn>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Brendan Jackman <jackmanb@google.com>
Link: https://lore.kernel.org/bpf/20210127022507.23674-1-dong.menglong@zte.com.cn
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/bpf/disasm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/disasm.c b/kernel/bpf/disasm.c index 19ff8fed7f4b..3acc7e0b6916 100644 --- a/kernel/bpf/disasm.c +++ b/kernel/bpf/disasm.c @@ -161,7 +161,7 @@ void print_bpf_insn(const struct bpf_insn_cbs *cbs, insn->dst_reg, insn->off, insn->src_reg); else if (BPF_MODE(insn->code) == BPF_ATOMIC && - (insn->imm == BPF_ADD || insn->imm == BPF_ADD || + (insn->imm == BPF_ADD || insn->imm == BPF_AND || insn->imm == BPF_OR || insn->imm == BPF_XOR)) { verbose(cbs->private_data, "(%02x) lock *(%s *)(r%d %+d) %s r%d\n", insn->code, |