]> git.baikalelectronics.ru Git - kernel.git/commit
ipv6: mip6: fix mip6_mh_filter()
authorEric Dumazet <edumazet@google.com>
Tue, 25 Sep 2012 20:01:28 +0000 (22:01 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 25 Sep 2012 20:04:44 +0000 (16:04 -0400)
commitb3049afcf4b4471ccde66e55c4d2de66b9c6c1a0
treebea3edef18f4817519b1084efd6e66c62d9a4f31
parentee52ba48e4a65256ee1ba5db2ed36782b5d4410d
ipv6: mip6: fix mip6_mh_filter()

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>
net/ipv6/mip6.c