diff options
Diffstat (limited to 'net/ipv6/ip6_input.c')
| -rw-r--r-- | net/ipv6/ip6_input.c | 6 |
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: | |||
| 241 | icmpv6_send(skb, ICMPV6_PARAMPROB, | 241 | icmpv6_send(skb, ICMPV6_PARAMPROB, |
| 242 | ICMPV6_UNK_NEXTHDR, nhoff); | 242 | ICMPV6_UNK_NEXTHDR, nhoff); |
| 243 | } | 243 | } |
| 244 | } else | 244 | kfree_skb(skb); |
| 245 | } else { | ||
| 245 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDELIVERS); | 246 | IP6_INC_STATS_BH(net, idev, IPSTATS_MIB_INDELIVERS); |
| 246 | kfree_skb(skb); | 247 | consume_skb(skb); |
| 248 | } | ||
| 247 | } | 249 | } |
| 248 | rcu_read_unlock(); | 250 | rcu_read_unlock(); |
| 249 | return 0; | 251 | return 0; |
