Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Wei Yongjun and committed by
James Hogan
6a2932a4 77238e76

+1 -1
+1 -1
arch/mips/net/ebpf_jit.c
··· 1513 1513 } 1514 1514 src = ebpf_to_mips_reg(ctx, insn, src_reg_no_fp); 1515 1515 if (src < 0) 1516 - return dst; 1516 + return src; 1517 1517 if (BPF_MODE(insn->code) == BPF_XADD) { 1518 1518 switch (BPF_SIZE(insn->code)) { 1519 1519 case BPF_W: