Skip to content

Commit

Permalink
bpf: Fix a spelling typo in bpf_atomic_alu_string disasm
Browse files Browse the repository at this point in the history
The name string for BPF_XOR is "xor", not "or". Fix it.

Fixes: 981f94c ("bpf: Add bitwise atomic instructions")
Signed-off-by: Xu Kuohai <xukuohai@huawei.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Brendan Jackman <jackmanb@google.com>
Link: https://lore.kernel.org/bpf/20210325134141.8533-1-xukuohai@huawei.com
  • Loading branch information
Xu Kuohai authored and Daniel Borkmann committed Mar 26, 2021
1 parent d8e8052 commit d6fe1cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/bpf/disasm.c
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ static const char *const bpf_atomic_alu_string[16] = {
[BPF_ADD >> 4] = "add",
[BPF_AND >> 4] = "and",
[BPF_OR >> 4] = "or",
[BPF_XOR >> 4] = "or",
[BPF_XOR >> 4] = "xor",
};

static const char *const bpf_ldst_string[] = {
Expand Down

0 comments on commit d6fe1cf

Please sign in to comment.