Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 83d26b63 authored by Dave Anderson's avatar Dave Anderson Committed by Jonathan Corbet
Browse files

bpf: doc: "neg" opcode has no operands



Fixes a copy-paste-o in the BPF opcode table: "neg" takes no arguments
and thus has no addressing modes.

Signed-off-by: default avatarDave Anderson <danderson@google.com>
Signed-off-by: default avatarKees Cook <keescook@chromium.org>
Acked-by: default avatarAlexei Starovoitov <ast@kernel.org>
Acked-by: default avatarDaniel Borkmann <daniel@iogearbox.net>
Signed-off-by: default avatarJonathan Corbet <corbet@lwn.net>
parent f55532a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -230,7 +230,7 @@ opcodes as defined in linux/filter.h stand for:
  mul              0, 4                 A * <x>
  div              0, 4                 A / <x>
  mod              0, 4                 A % <x>
  neg              0, 4                 !A
  neg                                   !A
  and              0, 4                 A & <x>
  or               0, 4                 A | <x>
  xor              0, 4                 A ^ <x>