]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:28:07 +0000 (05:28 +0900)
commit92da074473066d572bc39761a16e44299e104546
treeb439760eb4ac76172eccdfcbc64510d49ae3b623
parent27ab68c347da3242fc9f98bea187946e444a5f75
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