lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <1507886717-150040-1-git-send-email-weiyongjun1@huawei.com>
Date:   Fri, 13 Oct 2017 09:25:17 +0000
From:   Wei Yongjun <weiyongjun1@...wei.com>
To:     Ralf Baechle <ralf@...ux-mips.org>,
        "David S. Miller" <davem@...emloft.net>,
        David Daney <david.daney@...ium.com>,
        Matt Redfearn <matt.redfearn@...tec.com>,
        Colin Ian King <colin.king@...onical.com>,
        "Daniel Borkmann" <daniel@...earbox.net>
CC:     Wei Yongjun <weiyongjun1@...wei.com>, <linux-mips@...ux-mips.org>,
        <linux-kernel@...r.kernel.org>
Subject: [PATCH -next] 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@...wei.com>
---
 arch/mips/net/ebpf_jit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/mips/net/ebpf_jit.c b/arch/mips/net/ebpf_jit.c
index 01b7a87..962b025 100644
--- a/arch/mips/net/ebpf_jit.c
+++ b/arch/mips/net/ebpf_jit.c
@@ -1513,7 +1513,7 @@ static int build_one_insn(const struct bpf_insn *insn, struct jit_ctx *ctx,
 		}
 		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:

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ