diff --git a/mm/usercopy.c b/mm/usercopy.c index 82f81df2edcf91fa0fec44d4d2563d02d7c56b27..a3cc3052f830a01d414c7ff90c375988561863e1 100644 --- a/mm/usercopy.c +++ b/mm/usercopy.c @@ -83,7 +83,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;