From: Brendan Hickey Date: Wed, 30 Apr 2014 08:24:38 +0000 (+0200) Subject: bpf_dbg: fix wrong register usage X-Git-Tag: Ubuntu-5.2.0-15.16~13517^2~18 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e5744fe9d262d11131916d04ea79ea539fe296c0;p=mirror_ubuntu-eoan-kernel.git 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 Signed-off-by: Daniel Borkmann Signed-off-by: David S. Miller --- diff --git a/tools/net/bpf_dbg.c b/tools/net/bpf_dbg.c index bb31813e43dd..9a287bec695a 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;