]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/infiniband/hw/ipath/ipath_mad.c
IB/ipath: Fix time comparison to use time_after_eq()
[linux-2.6-omap-h63xx.git] / drivers / infiniband / hw / ipath / ipath_mad.c
index 30b2f44406b1d23530863f11278d99f2321386fb..babcc09c832cc4a9f51e5c291319e5865c65c22c 100644 (file)
@@ -1397,7 +1397,8 @@ static int process_subn(struct ib_device *ibdev, int mad_flags,
        }
 
        /* Is the mkey in the process of expiring? */
-       if (dev->mkey_lease_timeout && jiffies >= dev->mkey_lease_timeout) {
+       if (dev->mkey_lease_timeout &&
+           time_after_eq(jiffies, dev->mkey_lease_timeout)) {
                /* Clear timeout and mkey protection field. */
                dev->mkey_lease_timeout = 0;
                dev->mkeyprot = 0;