projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
77238e7
)
MIPS: bpf: Fix a typo in build_one_insn()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Fri, 13 Oct 2017 09:25:17 +0000
(09:25 +0000)
committer
James Hogan
<jhogan@kernel.org>
Wed, 1 Nov 2017 00:09:17 +0000
(
00:09
+0000)
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>
arch/mips/net/ebpf_jit.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/mips/net/ebpf_jit.c
b/arch/mips/net/ebpf_jit.c
index 01b7a87ea67866a19c86019ab95654185d74e84d..962b0259b4b6eb86443f88134fa90d044af08cc1 100644
(file)
--- a/
arch/mips/net/ebpf_jit.c
+++ b/
arch/mips/net/ebpf_jit.c
@@
-1513,7
+1513,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: