History

sctp: delete active ICMP proto unreachable timer when free transport

transport may be free before ICMP proto unreachable timer expire, so we should delete active ICMP proto unreachable timer when transport is going away.

Wei Yongjun committed 16 years ago

Commit 55fa0cf1 parent 35790c01 file · +4 −0Browse files

Unified · Split

net/sctp/transport.c+4−0
@@ -173,6 +173,10 @@ void sctp_transport_free(struct sctp_transport *transport) · 172 unmodified lines
173173 del_timer(&transport->T3_rtx_timer))
174174 sctp_transport_put(transport);
175175
176+ /* Delete the ICMP proto unreachable timer if it's active. */
177+ if (timer_pending(&transport->proto_unreach_timer) &&
178+ del_timer(&transport->proto_unreach_timer))
179+ sctp_association_put(transport->asoc);
176180
177181 sctp_transport_put(transport);
178182 }