aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp/associola.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/sctp/associola.c')
-rw-r--r--net/sctp/associola.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/sctp/associola.c b/net/sctp/associola.c
index b45ed1f96921..2f95f5a5145d 100644
--- a/net/sctp/associola.c
+++ b/net/sctp/associola.c
@@ -434,8 +434,7 @@ void sctp_association_free(struct sctp_association *asoc)
434 * on our state. 434 * on our state.
435 */ 435 */
436 for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i) { 436 for (i = SCTP_EVENT_TIMEOUT_NONE; i < SCTP_NUM_TIMEOUT_TYPES; ++i) {
437 if (timer_pending(&asoc->timers[i]) && 437 if (del_timer(&asoc->timers[i]))
438 del_timer(&asoc->timers[i]))
439 sctp_association_put(asoc); 438 sctp_association_put(asoc);
440 } 439 }
441 440
@@ -1497,7 +1496,7 @@ void sctp_assoc_rwnd_increase(struct sctp_association *asoc, unsigned int len)
1497 1496
1498 /* Stop the SACK timer. */ 1497 /* Stop the SACK timer. */
1499 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK]; 1498 timer = &asoc->timers[SCTP_EVENT_TIMEOUT_SACK];
1500 if (timer_pending(timer) && del_timer(timer)) 1499 if (del_timer(timer))
1501 sctp_association_put(asoc); 1500 sctp_association_put(asoc);
1502 } 1501 }
1503} 1502}