From: Markos Chandras Date: Mon, 23 Jun 2014 09:38:55 +0000 (+0100) Subject: MIPS: bpf: Fix is_range() semantics X-Git-Tag: omap-for-v3.16/fixes-rc4~42^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10c4d614d2ffcfc17add01f9648c3e530fb308d1;p=pandora-kernel.git MIPS: bpf: Fix is_range() semantics is_range() was meant to check whether the number is within the s16 range or not. However the return values and consumers expected the exact opposite. We fix that by inverting the logic in the function to return 'true' for < s16 and 'false' for > s16. Signed-off-by: Markos Chandras Reported-by: Alexei Starovoitov 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/7131/ Signed-off-by: Ralf Baechle --- Reading git-diff-tree failed