net: sctp: fix permissions for rto_alpha and rto_beta knobs
[firefly-linux-kernel-4.4.55.git] / net / sctp / sm_make_chunk.c
index fee5552ddf929e40f702e1d0b86ead2cb0630f97..ae0e616a7ca5ed64ee9e7e09cab08a13caf7bff7 100644 (file)
@@ -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)
                 *