projects
/
linux-drm-fsl-dcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS: BPF: Avoid unreachable code on little endian
[linux-drm-fsl-dcu.git]
/
arch
/
mips
/
net
/
bpf_jit_asm.S
diff --git
a/arch/mips/net/bpf_jit_asm.S
b/arch/mips/net/bpf_jit_asm.S
index e92726099be0e40d4a7c1e0903eac239c1ad2497..4f54cb18f1049b07e1dbdf8050a72c0004769de7 100644
(file)
--- a/
arch/mips/net/bpf_jit_asm.S
+++ b/
arch/mips/net/bpf_jit_asm.S
@@
-151,9
+151,10
@@
NESTED(bpf_slow_path_word, (6 * SZREG), $r_sp)
wsbh t0, $r_s0
jr $r_ra
rotr $r_A, t0, 16
wsbh t0, $r_s0
jr $r_ra
rotr $r_A, t0, 16
-#e
ndif
+#e
lse
jr $r_ra
jr $r_ra
- move $r_A, $r_s0
+ move $r_A, $r_s0
+#endif
END(bpf_slow_path_word)
END(bpf_slow_path_word)
@@
-162,9
+163,10
@@
NESTED(bpf_slow_path_half, (6 * SZREG), $r_sp)
#ifdef CONFIG_CPU_LITTLE_ENDIAN
jr $r_ra
wsbh $r_A, $r_s0
#ifdef CONFIG_CPU_LITTLE_ENDIAN
jr $r_ra
wsbh $r_A, $r_s0
-#e
ndif
+#e
lse
jr $r_ra
move $r_A, $r_s0
jr $r_ra
move $r_A, $r_s0
+#endif
END(bpf_slow_path_half)
END(bpf_slow_path_half)