Commit 6a2932a4 authored by Wei Yongjun's avatar Wei Yongjun Committed by James Hogan

MIPS: bpf: Fix a typo in build_one_insn()

Fix a typo in build_one_insn().

Fixes: b6bd53f9 ("MIPS: Add missing file for eBPF JIT.")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Cc: <stable@vger.kernel.org> # 4.13+
Patchwork: https://patchwork.linux-mips.org/patch/17491/Signed-off-by: default avatarJames Hogan <jhogan@kernel.org>
parent 77238e76
......@@ -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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment