summaryrefslogtreecommitdiff
path: root/net/ipv6/ip6_input.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2013-03-20 14:30:42 +0100
committerJohannes Berg <johannes.berg@intel.com>2013-03-20 14:30:42 +0100
commitfc8fed0eae4c2d1756ffd2f4f86c3e4357bebb08 (patch)
tree0b0d53c6976925edfb4f33d73fdfd3022f938b29 /net/ipv6/ip6_input.c
parentc451e6d4bd290db5290cfa7f9c4079386373645b (diff)
parent856a850afdd778fad7ded4240d333a8c3b05b136 (diff)
Merge remote-tracking branch 'wireless-next/master' into iwlwifi-next
Diffstat (limited to 'net/ipv6/ip6_input.c')
-rw-r--r--net/ipv6/ip6_input.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv6/ip6_input.c b/net/ipv6/ip6_input.c
index 5b10414e619e..b1876e52091e 100644
--- a/net/ipv6/ip6_input.c
+++ b/net/ipv6/ip6_input.c
@@ -241,9 +241,11 @@ resubmit:
icmpv6_send(skb, ICMPV6_PARAMPROB,
ICMPV6_UNK_NEXTHDR, nhoff);
}
- } else
+ kfree_skb(skb);
+ } else {
IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDELIVERS);
- kfree_skb(skb);
+ consume_skb(skb);
+ }
}
rcu_read_unlock();
return 0;