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: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=9cc08af3a1d9d1687cb2ad6063ac1552ec2f695a;p=openwrt%2Fstaging%2Fblogic.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),