Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 352054
b: refs/heads/master
c: 8c98653
h: refs/heads/master
v: v3
  • Loading branch information
Daniel Borkmann authored and David S. Miller committed Feb 4, 2013
1 parent 8fb2893 commit 39829da
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 72073ad2adacd2ed58a1dd98995342ca409a156e
refs/heads/master: 8c98653f05534acd1cb07ea4929702a3659177d1
9 changes: 5 additions & 4 deletions trunk/net/sctp/transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,6 @@ static void sctp_transport_destroy_rcu(struct rcu_head *head)
struct sctp_transport *transport;

transport = container_of(head, struct sctp_transport, rcu);
if (transport->asoc)
sctp_association_put(transport->asoc);

sctp_packet_free(&transport->packet);

dst_release(transport->dst);
kfree(transport);
Expand All @@ -186,6 +182,11 @@ static void sctp_transport_destroy(struct sctp_transport *transport)
SCTP_ASSERT(transport->dead, "Transport is not dead", return);

call_rcu(&transport->rcu, sctp_transport_destroy_rcu);

sctp_packet_free(&transport->packet);

if (transport->asoc)
sctp_association_put(transport->asoc);
}

/* Start T3_rtx timer if it is not already running and update the heartbeat
Expand Down

0 comments on commit 39829da

Please sign in to comment.