diff --git a/mm/usercopy.c b/mm/usercopy.c index f5c4c3a6f2df..f78015e8b1e5 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -84,7 +84,7 @@ static bool overlaps(const void *ptr, unsigned long n, unsigned long low, unsigned long check_high = check_low + n; /* Does not overlap if entirely above or entirely below. */ - if (check_low >= high || check_high < low) + if (check_low >= high || check_high <= low) return false; return true;