diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-11-04 01:23:45 (GMT) |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 06:45:33 (GMT) |
commit | 80219c6c6f5ac033b3ff96ee40719ffd1ce80d18 (patch) | |
tree | 4f9787013e8b0e093836c401ccacc3c4314ad9df /arch/mips/include | |
parent | 7893165224c92e4d1a7aea0ea49f1ed8d9949793 (diff) | |
download | linux-80219c6c6f5ac033b3ff96ee40719ffd1ce80d18.tar.xz |
MIPS: uaccess.h: Fix strnlen_user comment.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch/mips/include')
-rw-r--r-- | arch/mips/include/asm/uaccess.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 486e27b..bf8b324 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h @@ -1395,7 +1395,7 @@ static inline long __strnlen_user(const char __user *s, long n) } /* - * strlen_user: - Get the size of a string in user space. + * strnlen_user: - Get the size of a string in user space. * @str: The string to measure. * * Context: User context only. This function may sleep. @@ -1404,9 +1404,7 @@ static inline long __strnlen_user(const char __user *s, long n) * * Returns the size of the string INCLUDING the terminating NUL. * On exception, returns 0. - * - * If there is a limit on the length of a valid string, you may wish to - * consider using strnlen_user() instead. + * If the string is too long, returns a value greater than @n. */ static inline long strnlen_user(const char __user *s, long n) { |