From: Werner Almesberger Date: Fri, 2 Aug 2013 13:51:19 +0000 (-0300) Subject: icmpv6_filter: fix "_hdr" incorrectly being a pointer X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git icmpv6_filter: fix "_hdr" incorrectly being a pointer "_hdr" should hold the ICMPv6 header while "hdr" is the pointer to it. This worked by accident. Signed-off-by: Werner Almesberger Signed-off-by: David S. Miller --- diff --git a/net/ipv6/raw.c b/net/ipv6/raw.c index c45f7a5c36e9..164fb5f58641 100644 --- a/net/ipv6/raw.c +++ b/net/ipv6/raw.c @@ -108,7 +108,7 @@ found: */ static int icmpv6_filter(const struct sock *sk, const struct sk_buff *skb) { - struct icmp6hdr *_hdr; + struct icmp6hdr _hdr; const struct icmp6hdr *hdr; hdr = skb_header_pointer(skb, skb_transport_offset(skb),