mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Acked-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
35790c0421
commit
55fa0cfd7c
@ -173,6 +173,10 @@ void sctp_transport_free(struct sctp_transport *transport)
|
||||
del_timer(&transport->T3_rtx_timer))
|
||||
sctp_transport_put(transport);
|
||||
|
||||
/* Delete the ICMP proto unreachable timer if it's active. */
|
||||
if (timer_pending(&transport->proto_unreach_timer) &&
|
||||
del_timer(&transport->proto_unreach_timer))
|
||||
sctp_association_put(transport->asoc);
|
||||
|
||||
sctp_transport_put(transport);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user