diff options
Diffstat (limited to 'net/dccp/ccids/ccid3.c')
-rw-r--r-- | net/dccp/ccids/ccid3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/dccp/ccids/ccid3.c b/net/dccp/ccids/ccid3.c index 3c4779fa9432..f9e16db09bef 100644 --- a/net/dccp/ccids/ccid3.c +++ b/net/dccp/ccids/ccid3.c | |||
@@ -307,8 +307,6 @@ static int ccid3_hc_tx_send_packet(struct sock *sk, | |||
307 | 307 | ||
308 | switch (hctx->ccid3hctx_state) { | 308 | switch (hctx->ccid3hctx_state) { |
309 | case TFRC_SSTATE_NO_SENT: | 309 | case TFRC_SSTATE_NO_SENT: |
310 | hctx->ccid3hctx_no_feedback_timer.function = ccid3_hc_tx_no_feedback_timer; | ||
311 | hctx->ccid3hctx_no_feedback_timer.data = (unsigned long)sk; | ||
312 | sk_reset_timer(sk, &hctx->ccid3hctx_no_feedback_timer, | 310 | sk_reset_timer(sk, &hctx->ccid3hctx_no_feedback_timer, |
313 | jiffies + usecs_to_jiffies(TFRC_INITIAL_TIMEOUT)); | 311 | jiffies + usecs_to_jiffies(TFRC_INITIAL_TIMEOUT)); |
314 | hctx->ccid3hctx_last_win_count = 0; | 312 | hctx->ccid3hctx_last_win_count = 0; |
@@ -672,6 +670,9 @@ static int ccid3_hc_tx_init(struct sock *sk) | |||
672 | hctx->ccid3hctx_t_rto = USEC_PER_SEC; | 670 | hctx->ccid3hctx_t_rto = USEC_PER_SEC; |
673 | hctx->ccid3hctx_state = TFRC_SSTATE_NO_SENT; | 671 | hctx->ccid3hctx_state = TFRC_SSTATE_NO_SENT; |
674 | INIT_LIST_HEAD(&hctx->ccid3hctx_hist); | 672 | INIT_LIST_HEAD(&hctx->ccid3hctx_hist); |
673 | |||
674 | hctx->ccid3hctx_no_feedback_timer.function = ccid3_hc_tx_no_feedback_timer; | ||
675 | hctx->ccid3hctx_no_feedback_timer.data = (unsigned long)sk; | ||
675 | init_timer(&hctx->ccid3hctx_no_feedback_timer); | 676 | init_timer(&hctx->ccid3hctx_no_feedback_timer); |
676 | 677 | ||
677 | return 0; | 678 | return 0; |