Loading mm/usercopy.c +1 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ static inline const char *check_kernel_text_object(const void *ptr, static inline const char *check_bogus_address(const void *ptr, unsigned long n) { /* Reject if object wraps past end of memory. */ if ((unsigned long)ptr + n < (unsigned long)ptr) if ((unsigned long)ptr + (n - 1) < (unsigned long)ptr) return "<wrapped address>"; /* Reject if NULL or ZERO-allocation. */ Loading Loading
mm/usercopy.c +1 −1 Original line number Diff line number Diff line Loading @@ -124,7 +124,7 @@ static inline const char *check_kernel_text_object(const void *ptr, static inline const char *check_bogus_address(const void *ptr, unsigned long n) { /* Reject if object wraps past end of memory. */ if ((unsigned long)ptr + n < (unsigned long)ptr) if ((unsigned long)ptr + (n - 1) < (unsigned long)ptr) return "<wrapped address>"; /* Reject if NULL or ZERO-allocation. */ Loading