aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/mips/include/asm/uaccess.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/mips/include/asm/uaccess.h b/arch/mips/include/asm/uaccess.h
index 486e27b8f479..bf8b32450ef6 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)
1395} 1395}
1396 1396
1397/* 1397/*
1398 * strlen_user: - Get the size of a string in user space. 1398 * strnlen_user: - Get the size of a string in user space.
1399 * @str: The string to measure. 1399 * @str: The string to measure.
1400 * 1400 *
1401 * Context: User context only. This function may sleep. 1401 * Context: User context only. This function may sleep.
@@ -1404,9 +1404,7 @@ static inline long __strnlen_user(const char __user *s, long n)
1404 * 1404 *
1405 * Returns the size of the string INCLUDING the terminating NUL. 1405 * Returns the size of the string INCLUDING the terminating NUL.
1406 * On exception, returns 0. 1406 * On exception, returns 0.
1407 * 1407 * If the string is too long, returns a value greater than @n.
1408 * If there is a limit on the length of a valid string, you may wish to
1409 * consider using strnlen_user() instead.
1410 */ 1408 */
1411static inline long strnlen_user(const char __user *s, long n) 1409static inline long strnlen_user(const char __user *s, long n)
1412{ 1410{