aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/udp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 1fd784f3e2ec..47123bf5eb0f 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -848,12 +848,14 @@ do_append_data:
848 } else { 848 } else {
849 dst_release(dst); 849 dst_release(dst);
850 } 850 }
851 dst = NULL;
851 } 852 }
852 853
853 if (err > 0) 854 if (err > 0)
854 err = np->recverr ? net_xmit_errno(err) : 0; 855 err = np->recverr ? net_xmit_errno(err) : 0;
855 release_sock(sk); 856 release_sock(sk);
856out: 857out:
858 dst_release(dst);
857 fl6_sock_release(flowlabel); 859 fl6_sock_release(flowlabel);
858 if (!err) 860 if (!err)
859 return len; 861 return len;