aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/linux/fence.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/fence.h b/include/linux/fence.h
index bb522011383b..5aa95eb886f7 100644
--- a/include/linux/fence.h
+++ b/include/linux/fence.h
@@ -292,7 +292,7 @@ static inline bool fence_is_later(struct fence *f1, struct fence *f2)
292 if (WARN_ON(f1->context != f2->context)) 292 if (WARN_ON(f1->context != f2->context))
293 return false; 293 return false;
294 294
295 return f1->seqno - f2->seqno < INT_MAX; 295 return (int)(f1->seqno - f2->seqno) > 0;
296} 296}
297 297
298/** 298/**