diff options
author | Daniel Borkmann <dborkman@redhat.com> | 2014-06-11 20:19:28 +0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-06-11 23:23:17 +0400 |
commit | 67cb9366ff5f99868100198efba5ca88aaa6ad25 (patch) | |
tree | 0e95142623a1bee9d773489ef0c126af91021724 /net/sctp/sm_make_chunk.c | |
parent | 9181a6bd18009bf417bc865fd862075c335cc1dd (diff) | |
download | linux-67cb9366ff5f99868100198efba5ca88aaa6ad25.tar.xz |
ktime: add ktime_after and ktime_before helper
Add two minimal helper functions analogous to time_before() and
time_after() that will later on both be needed by SCTP code.
Signed-off-by: Daniel Borkmann <dborkman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp/sm_make_chunk.c')
-rw-r--r-- | net/sctp/sm_make_chunk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sctp/sm_make_chunk.c b/net/sctp/sm_make_chunk.c index fee5552ddf92..ae0e616a7ca5 100644 --- a/net/sctp/sm_make_chunk.c +++ b/net/sctp/sm_make_chunk.c @@ -1782,7 +1782,7 @@ no_hmac: else kt = ktime_get(); - if (!asoc && ktime_compare(bear_cookie->expiration, kt) < 0) { + if (!asoc && ktime_before(bear_cookie->expiration, kt)) { /* * Section 3.3.10.3 Stale Cookie Error (3) * |