projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f114890
)
bpf_dbg: fix wrong register usage
author
Brendan Hickey
<bhickey@google.com>
Wed, 30 Apr 2014 08:24:38 +0000
(10:24 +0200)
committer
David S. Miller
<davem@davemloft.net>
Wed, 30 Apr 2014 20:12:22 +0000
(16:12 -0400)
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>
tools/net/bpf_dbg.c
patch
|
blob
|
blame
|
history
diff --git
a/tools/net/bpf_dbg.c
b/tools/net/bpf_dbg.c
index bb31813e43ddca8bd2bad4544e593d8c6df418f2..9a287bec695a3630bc43f19e3376d8cff36d2856 100644
(file)
--- 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;