ipv6: mip6: fix mip6_mh_filter()
authorEric Dumazet <edumazet@google.com>
Tue, 25 Sep 2012 20:01:28 +0000 (22:01 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:47:04 +0000 (05:47 +0900)
commita65b66505a35cecdbdcea128b25c07416d4aa4e6
tree2e243d039544f8da1d0ccad7513b38f753485931
parentcd40ac99087b8abdf1eae99b937c74a4fdef97bd
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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
net/ipv6/mip6.c