Nicolas Schichan 19fc99d0c6 ARM: net fix emit_udiv() for BPF_ALU | BPF_DIV | BPF_K intruction.
In that case, emit_udiv() will be called with rn == ARM_R0 (r_scratch)
and loading rm first into ARM_R0 will result in jit_udiv() function
being called the same dividend and divisor. Fix that by loading rn
first into ARM_R1 and then rm into ARM_R0.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Cc: <stable@vger.kernel.org> # v3.13+
Fixes: aee636c4809f (bpf: do not use reciprocal divide)
Acked-by: Mircea Gherzan <mgherzan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-10 19:20:32 -04:00
..
2015-04-22 09:08:39 -07:00
2015-04-22 09:09:46 -07:00
2015-03-19 10:17:22 -05:00
2015-04-22 09:24:55 -07:00
2015-02-19 09:44:25 +01:00
2015-03-19 10:17:22 -05:00
2015-04-22 09:24:55 -07:00
2015-03-19 10:17:22 -05:00
2015-02-19 09:44:25 +01:00
2015-04-22 09:08:39 -07:00