Skip to content

Commit

Permalink
i386: replace hard-coded constant with appropriate macro from kernel.h
Browse files Browse the repository at this point in the history
Signed-off-by: Robert P. J. Day <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Andi Kleen <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Robert P. J. Day authored and Linus Torvalds committed Jul 22, 2007
1 parent 267eb01 commit 48dd934
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/asm-i386/uaccess.h
Original file line number Diff line number Diff line change
Expand Up @@ -581,7 +581,7 @@ long __must_check __strncpy_from_user(char *dst,
* If there is a limit on the length of a valid string, you may wish to
* consider using strnlen_user() instead.
*/
#define strlen_user(str) strnlen_user(str, ~0UL >> 1)
#define strlen_user(str) strnlen_user(str, LONG_MAX)

long strnlen_user(const char __user *str, long n);
unsigned long __must_check clear_user(void __user *mem, unsigned long len);
Expand Down

0 comments on commit 48dd934

Please sign in to comment.