Skip to contentSkip to conversation

bpf: doc: "neg" opcode has no operands

PATCH Applied Kees Cook 4 participants 4 messages Mar 28, 2016 – Mar 31, 2016

Subsystems (2)
lore
Share & tools
lore

Kees Cook

author
#0 lore raw

PATCH 1/1 bpf: doc: "neg" opcode has no operands

From: Dave Anderson <[email protected]>

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

---
 Documentation/networking/filter.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Documentation/networking/filter.txt +1 -1
index 96da119a47e7..11f67f181d39 100644
@@ -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>
Signature · 6 lines
2.6.3


-- 
Kees Cook
Chrome OS & Brillo Security