diff options
author | Nicolas Schichan <nschichan@freebox.fr> | 2015-05-06 16:31:56 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-05-10 23:20:32 (GMT) |
commit | 19fc99d0c6ba7d9b65456496b5bb2169d5f74cd0 (patch) | |
tree | 5a26d0599eb1e57364f82e3aa200458a1933a19a /net/mpls | |
parent | 78f5b899195019f71f7593c604d75ca61658eae3 (diff) | |
download | linux-19fc99d0c6ba7d9b65456496b5bb2169d5f74cd0.tar.xz |
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>
Diffstat (limited to 'net/mpls')
0 files changed, 0 insertions, 0 deletions