ARM: net: bpf_jit: fix emit_swap16() for non ARMv6+.
authorNicolas Schichan <nschichan@freebox.fr>
Wed, 13 Feb 2013 17:30:39 +0000 (17:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Feb 2013 18:26:44 +0000 (13:26 -0500)
commit462738f4f04febe16bf366925559c267130c88f0
tree3b04e14ad0f6985788c461e04341bf03066c49ce
parent3e55f8b306cf305832a4ac78aa82e1b40e818ece
ARM: net: bpf_jit: fix emit_swap16() for non ARMv6+.

The original code was generating an lsl instructions using the value
of ARM_R8 (skb_headlen, possibly uninitialized if no skb_headlen
access was required) as a shift amount.

Signed-off-by: Nicolas Schichan <nschichan@freebox.fr>
Acked-by: Mircea Gherzan <mgherzan@gmail.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/arm/net/bpf_jit_32.c