summaryrefslogtreecommitdiff
path: root/arch/mips/net
diff options
context:
space:
mode:
authorWei Yongjun <weiyongjun1@huawei.com>2017-10-13 12:25:17 +0300
committerJames Hogan <jhogan@kernel.org>2017-11-01 03:09:17 +0300
commit6a2932a463d526e362a6b4e112be226f1d18d088 (patch)
treec74ee12d2678886315bb32b1506de2342a73f746 /arch/mips/net
parent77238e76b9156d28d86c1e31c00ed2960df0e4de (diff)
downloadlinux-6a2932a463d526e362a6b4e112be226f1d18d088.tar.xz
MIPS: bpf: Fix a typo in build_one_insn()
Fix a typo in build_one_insn(). Fixes: b6bd53f9c4e8 ("MIPS: Add missing file for eBPF JIT.") Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Cc: <stable@vger.kernel.org> # 4.13+ Patchwork: https://patchwork.linux-mips.org/patch/17491/ Signed-off-by: James Hogan <jhogan@kernel.org>
Diffstat (limited to 'arch/mips/net')
-rw-r--r--arch/mips/net/ebpf_jit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/net/ebpf_jit.c b/arch/mips/net/ebpf_jit.c
index 01b7a87ea678..962b0259b4b6 100644
--- a/arch/mips/net/ebpf_jit.c
+++ b/arch/mips/net/ebpf_jit.c
@@ -1513,7 +1513,7 @@ ld_skb_common:
}
src = ebpf_to_mips_reg(ctx, insn, src_reg_no_fp);
if (src < 0)
- return dst;
+ return src;
if (BPF_MODE(insn->code) == BPF_XADD) {
switch (BPF_SIZE(insn->code)) {
case BPF_W: