]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS,bpf: fix missing break in switch statement
authorColin Ian King <colin.king@canonical.com>
Tue, 22 Aug 2017 22:46:06 +0000 (23:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 22 Aug 2017 23:18:00 +0000 (16:18 -0700)
commit6bfb376d9c33182c26febe7cbf191ad1429562fe
tree302fa8f14434955ed03cb0838eef931a975b44eb
parent0e6381b42f715fc6088f0b10da913f540686f55d
MIPS,bpf: fix missing break in switch statement

There is a missing break causing a fall-through and setting
ctx.use_bbit_insns to the wrong value. Fix this by adding the
missing break.

Detected with cppcheck:
"Variable 'ctx.use_bbit_insns' is reassigned a value before the old
one has been used. 'break;' missing?"

Fixes: bcb2f72d7b02 ("MIPS,bpf: Fix using smp_processor_id() in preemptible splat.")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: David Daney <david.daney@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/mips/net/ebpf_jit.c