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:38:45 +0000 (05:38 +0900)
commit28ad5c792deb17e1274cef32c59049d2062ed1b3
treea1c8460712050ec8ea60cc01f436edede37e4df6
parent7a20f9c5fa76e602bf9dda7f610c8de04e7afa04
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