From: Ralf Baechle Date: Tue, 4 Nov 2014 01:23:45 +0000 (+0100) Subject: MIPS: uaccess.h: Fix strnlen_user comment. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=14aa136161f8096b4de3f90b5b81de2586107947;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git MIPS: uaccess.h: Fix strnlen_user comment. Signed-off-by: Ralf Baechle --- diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h index 133678ab4eb8..22a5624e2fd2 100644 --- a/arch/mips/include/asm/uaccess.h +++ b/arch/mips/include/asm/uaccess.h @@ -1422,7 +1422,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. @@ -1431,9 +1431,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) {