]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ipv6: mip6: fix mip6_mh_filter()
authorEric Dumazet <edumazet@google.com>
Tue, 25 Sep 2012 20:01:28 +0000 (22:01 +0200)
committerGuangyu Sun <guangyu.sun@oracle.com>
Wed, 17 Oct 2012 18:24:27 +0000 (11:24 -0700)
commit8ab2e7ca6770cdbad14ed6a7bd258134eefec9e1
treee698d01ecafd8e61e67e2d4c43ce25c24c9f2e37
parentf2a59e3244a73c65a50f288a41923492b169995e
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>
Signed-off-by: Guangyu Sun <guangyu.sun@oracle.com>
net/ipv6/mip6.c