summaryrefslogtreecommitdiffstats
path: root/net/sctp/outqueue.c
diff options
context:
space:
mode:
authorWei Yongjun <yjwei@cn.fujitsu.com>2009-03-02 09:46:13 +0000
committerDavid S. Miller <davem@davemloft.net>2009-03-02 22:49:18 -0800
commitf61f6f82c90cbaa85270f26b89e3309a8c6e2e88 (patch)
tree973fd185d1540014322153ba1b3fc8273590d8d6 /net/sctp/outqueue.c
parentc6db93a58f1745cfe1acc2e1a1d68afc3245eced (diff)
downloadblackbird-op-linux-f61f6f82c90cbaa85270f26b89e3309a8c6e2e88.tar.gz
blackbird-op-linux-f61f6f82c90cbaa85270f26b89e3309a8c6e2e88.zip
sctp: use time_before or time_after for comparing jiffies
The functions time_before or time_after are more robust for comparing jiffies against other values. Signed-off-by: Wei Yongjun <yjwei@cn.fujitsu.com> Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/outqueue.c')
-rw-r--r--net/sctp/outqueue.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sctp/outqueue.c b/net/sctp/outqueue.c
index bc411c896216..a367d15a21aa 100644
--- a/net/sctp/outqueue.c
+++ b/net/sctp/outqueue.c
@@ -428,7 +428,8 @@ void sctp_retransmit_mark(struct sctp_outq *q,
* retransmitting due to T3 timeout.
*/
if (reason == SCTP_RTXR_T3_RTX &&
- (jiffies - chunk->sent_at) < transport->last_rto)
+ time_before(jiffies, chunk->sent_at +
+ transport->last_rto))
continue;
/* RFC 2960 6.2.1 Processing a Received SACK
OpenPOWER on IntegriCloud