diff options
-rw-r--r-- | net/ipv6/ip6_output.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index 86e1835ce4e4..6338a9c1aa14 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -933,6 +933,8 @@ static int ip6_dst_lookup_tail(struct sock *sk, | |||
933 | return 0; | 933 | return 0; |
934 | 934 | ||
935 | out_err_release: | 935 | out_err_release: |
936 | if (err == -ENETUNREACH) | ||
937 | IP6_INC_STATS_BH(NULL, IPSTATS_MIB_OUTNOROUTES); | ||
936 | dst_release(*dst); | 938 | dst_release(*dst); |
937 | *dst = NULL; | 939 | *dst = NULL; |
938 | return err; | 940 | return err; |