summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrendan Hickey <bhickey@google.com>2014-04-30 10:24:38 +0200
committerDavid S. Miller <davem@davemloft.net>2014-04-30 16:12:22 -0400
commite5744fe9d262d11131916d04ea79ea539fe296c0 (patch)
tree61a368160fee456475381273ae2949512c09df4a
parentf114890cdf84d753f6b41cd0cc44ba51d16313da (diff)
downloadop-kernel-dev-e5744fe9d262d11131916d04ea79ea539fe296c0.zip
op-kernel-dev-e5744fe9d262d11131916d04ea79ea539fe296c0.tar.gz
bpf_dbg: fix wrong register usage
The AND instruction is erroneously using the X register instead of the K register. Signed-off-by: Brendan Hickey <bhickey@google.com> Signed-off-by: Daniel Borkmann <dborkman@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--tools/net/bpf_dbg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/bpf_dbg.c b/tools/net/bpf_dbg.c
index bb31813..9a287be 100644
--- a/tools/net/bpf_dbg.c
+++ b/tools/net/bpf_dbg.c
@@ -820,7 +820,7 @@ do_div:
r->A &= r->X;
break;
case BPF_ALU_AND | BPF_K:
- r->A &= r->X;
+ r->A &= K;
break;
case BPF_ALU_OR | BPF_X:
r->A |= r->X;
OpenPOWER on IntegriCloud