Skip to contentSkip to conversation

Patch "MIPS: bpf: Fix a typo in build_one_insn()" has been added to the 4.13-stable tree

PATCH [email protected] 1 participant 1 message Nov 5, 2017

Subsystems (4)
lore
Share & tools
lore

[email protected]

author maintainer Applied
#0 lore raw

This is a note to let you know that I've just added the patch titled

MIPS: bpf: Fix a typo in build_one_insn()

to the 4.13-stable tree which can be found at:
http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
mips-bpf-fix-a-typo-in-build_one_insn.patch
and it can be found in the queue-4.13 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree, please let <[email protected]> know about it.

Quoted 1 line

From 6a2932a463d526e362a6b4e112be226f1d18d088 Mon Sep 17 00:00:00 2001

From: Wei Yongjun <[email protected]>
Date: Fri, 13 Oct 2017 09:25:17 +0000
Subject: MIPS: bpf: Fix a typo in build_one_insn()

From: Wei Yongjun <[email protected]>

commit 6a2932a463d526e362a6b4e112be226f1d18d088 upstream.

Fix a typo in build_one_insn().

Fixes b6bd53f9c4e8 ("MIPS: Add missing file for eBPF JIT.")

Patchwork: https://patchwork.linux-mips.org/patch/17491/

---
 arch/mips/net/ebpf_jit.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/mips/net/ebpf_jit.c +1 -1
@@ -1485,7 +1485,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:

Patches currently in stable-queue which might be from [email protected] are

queue-4.13/mips-bpf-fix-a-typo-in-build_one_insn.patch