diff options
Diffstat (limited to 'net/sctp/input.c')
-rw-r--r-- | net/sctp/input.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/sctp/input.c b/net/sctp/input.c index 8bd3c279427e..965bbbbe48d4 100644 --- a/net/sctp/input.c +++ b/net/sctp/input.c | |||
@@ -468,8 +468,7 @@ void sctp_icmp_proto_unreachable(struct sock *sk, | |||
468 | } else { | 468 | } else { |
469 | struct net *net = sock_net(sk); | 469 | struct net *net = sock_net(sk); |
470 | 470 | ||
471 | if (timer_pending(&t->proto_unreach_timer) && | 471 | if (del_timer(&t->proto_unreach_timer)) |
472 | del_timer(&t->proto_unreach_timer)) | ||
473 | sctp_association_put(asoc); | 472 | sctp_association_put(asoc); |
474 | 473 | ||
475 | sctp_do_sm(net, SCTP_EVENT_T_OTHER, | 474 | sctp_do_sm(net, SCTP_EVENT_T_OTHER, |