* Patch "MIPS: bpf: Fix a typo in build_one_insn()" has been added to the 4.13-stable tree
@ 2017-11-05 15:24 gregkh
0 siblings, 0 replies; only message in thread
From: gregkh @ 2017-11-05 15:24 UTC (permalink / raw)
To: weiyongjun1, gregkh, jhogan; +Cc: stable, stable-commits
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 <stable@vger.kernel.org> know about it.
>From 6a2932a463d526e362a6b4e112be226f1d18d088 Mon Sep 17 00:00:00 2001
From: Wei Yongjun <weiyongjun1@huawei.com>
Date: Fri, 13 Oct 2017 09:25:17 +0000
Subject: MIPS: bpf: Fix a typo in build_one_insn()
From: Wei Yongjun <weiyongjun1@huawei.com>
commit 6a2932a463d526e362a6b4e112be226f1d18d088 upstream.
Fix a typo in build_one_insn().
Fixes: b6bd53f9c4e8 ("MIPS: Add missing file for eBPF JIT.")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Patchwork: https://patchwork.linux-mips.org/patch/17491/
Signed-off-by: James Hogan <jhogan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
---
arch/mips/net/ebpf_jit.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- a/arch/mips/net/ebpf_jit.c
+++ b/arch/mips/net/ebpf_jit.c
@@ -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 weiyongjun1@huawei.com are
queue-4.13/mips-bpf-fix-a-typo-in-build_one_insn.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2017-11-05 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-11-05 15:24 Patch "MIPS: bpf: Fix a typo in build_one_insn()" has been added to the 4.13-stable tree gregkh
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).