From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:51 +0000 (+0100) Subject: MIPS: bpf: Fix branch conditional for BPF_J{GT/GE} cases X-Git-Tag: omap-for-v3.16/fixes-rc4~42^2~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ab24a4e3de1ec37d8ed255841d2d94d77e8a4f4;p=pandora-kernel.git MIPS: bpf: Fix branch conditional for BPF_J{GT/GE} cases The sltiu and sltu instructions will set the scratch register to 1 if A <= X|K so fix the emitted branch conditional to check for scratch != zero rather than scratch >= zero which would complicate the resuling branch logic given that MIPS does not have a BGT or BGET instructions to compare general purpose registers directly. Signed-off-by: Markos Chandras Cc: David S. Miller Cc: Daniel Borkmann Cc: Alexei Starovoitov Cc: netdev@vger.kernel.org Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7126/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed