]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - include/net/sctp/sctp.h
sctp: add dst_pending_confirm flag
[mirror_ubuntu-zesty-kernel.git] / include / net / sctp / sctp.h
index d8833a86cd7e48192f4c3b5d984ac76aee3b7516..897f6365d98dbea5bb3543040d1f1a008556fd49 100644 (file)
@@ -586,10 +586,8 @@ static inline void sctp_v4_map_v6(union sctp_addr *addr)
  */
 static inline struct dst_entry *sctp_transport_dst_check(struct sctp_transport *t)
 {
-       if (t->dst && !dst_check(t->dst, t->dst_cookie)) {
-               dst_release(t->dst);
-               t->dst = NULL;
-       }
+       if (t->dst && !dst_check(t->dst, t->dst_cookie))
+               sctp_transport_dst_release(t);
 
        return t->dst;
 }