summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorXu Kuohai <xukuohai@huawei.com>2021-03-25 13:41:41 +0000
committerDaniel Borkmann <daniel@iogearbox.net>2021-03-26 17:56:48 +0100
commitd6fe1cf89026d3111112ee29ef8d93cd7a8aaa24 (patch)
tree8b1ca34ce2ad7ce7fb7fd4a69f28905bea9baad9 /kernel
parentd8e8052e42d0f8ff59898b9b4142b16958627ac9 (diff)
bpf: Fix a spelling typo in bpf_atomic_alu_string disasm
The name string for BPF_XOR is "xor", not "or". Fix it. Fixes: 981f94c3e921 ("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
Diffstat (limited to 'kernel')
-rw-r--r--kernel/bpf/disasm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/bpf/disasm.c b/kernel/bpf/disasm.c
index 3acc7e0b6916..faa54d58972c 100644
--- a/kernel/bpf/disasm.c
+++ b/kernel/bpf/disasm.c
@@ -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[] = {