diff options
-rw-r--r-- | net/ipv6/ip6_output.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 5dead399fe64..26de3c0ea31e 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -1427,8 +1427,9 @@ void ip6_flush_pending_frames(struct sock *sk) | |||
1427 | struct sk_buff *skb; | 1427 | struct sk_buff *skb; |
1428 | 1428 | ||
1429 | while ((skb = __skb_dequeue_tail(&sk->sk_write_queue)) != NULL) { | 1429 | while ((skb = __skb_dequeue_tail(&sk->sk_write_queue)) != NULL) { |
1430 | IP6_INC_STATS(ip6_dst_idev(skb->dst), | 1430 | if (skb->dst) |
1431 | IPSTATS_MIB_OUTDISCARDS); | 1431 | IP6_INC_STATS(ip6_dst_idev(skb->dst), |
1432 | IPSTATS_MIB_OUTDISCARDS); | ||
1432 | kfree_skb(skb); | 1433 | kfree_skb(skb); |
1433 | } | 1434 | } |
1434 | 1435 | ||