aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXu Kuohai <[email protected]>2021-03-25 13:41:41 +0000
committerDaniel Borkmann <[email protected]>2021-03-26 17:56:48 +0100
commitd6fe1cf89026d3111112ee29ef8d93cd7a8aaa24 (patch)
tree8b1ca34ce2ad7ce7fb7fd4a69f28905bea9baad9
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 <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Brendan Jackman <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
-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[] = {