From: Eric Dumazet Date: Tue, 25 Sep 2012 07:03:40 +0000 (+0000) Subject: ipv6: raw: fix icmpv6_filter() X-Git-Tag: v3.6~22^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b05c4b50edbddbdde715c4a7350629819f6655e;p=pandora-kernel.git ipv6: raw: fix icmpv6_filter() icmpv6_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() and change the prototype to make clear both sk and skb are const. Also, if icmpv6 header cannot be found, do not deliver the packet, as we do in IPv4. Signed-off-by: Eric Dumazet Signed-off-by: David S. Miller --- Reading git-diff-tree failed