ipv6: mip6: fix mip6_mh_filter()
authorEric Dumazet <edumazet@google.com>
Tue, 25 Sep 2012 20:01:28 +0000 (22:01 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 10 Oct 2012 02:31:32 +0000 (03:31 +0100)
commitef15da3b6b92295660dd0f0af7011cf941654ab4
tree1b47ede85f4aeb7b8bae876b304018c2d435f822
parentc3fc2c27f7c56d074f740f1735a2760df4a441bd
ipv6: mip6: fix mip6_mh_filter()

[ Upstream commit 96af69ea2a83d292238bdba20e4508ee967cf8cb ]

mip6_mh_filter() should not modify its input, or else its caller
would need to recompute ipv6_hdr() if skb->head is reallocated.

Use skb_header_pointer() instead of pskb_may_pull()

Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
net/ipv6/mip6.c