diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2014-11-03 20:23:45 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2014-11-24 01:44:05 -0500 |
commit | 14aa136161f8096b4de3f90b5b81de2586107947 (patch) | |
tree | aeb58cd83e41022df22d4bdb7afa5f0b847cb925 /arch | |
parent | 83fd43449baaf88fe5c03dd0081a062041837c51 (diff) |
MIPS: uaccess.h: Fix strnlen_user comment.
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Diffstat (limited to 'arch')
-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 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) | |||
1422 | } | 1422 | } |
1423 | 1423 | ||
1424 | /* | 1424 | /* |
1425 | * strlen_user: - Get the size of a string in user space. | 1425 | * strnlen_user: - Get the size of a string in user space. |
1426 | * @str: The string to measure. | 1426 | * @str: The string to measure. |
1427 | * | 1427 | * |
1428 | * Context: User context only. This function may sleep. | 1428 | * Context: User context only. This function may sleep. |
@@ -1431,9 +1431,7 @@ static inline long __strnlen_user(const char __user *s, long n) | |||
1431 | * | 1431 | * |
1432 | * Returns the size of the string INCLUDING the terminating NUL. | 1432 | * Returns the size of the string INCLUDING the terminating NUL. |
1433 | * On exception, returns 0. | 1433 | * On exception, returns 0. |
1434 | * | 1434 | * If the string is too long, returns a value greater than @n. |
1435 | * If there is a limit on the length of a valid string, you may wish to | ||
1436 | * consider using strnlen_user() instead. | ||
1437 | */ | 1435 | */ |
1438 | static inline long strnlen_user(const char __user *s, long n) | 1436 | static inline long strnlen_user(const char __user *s, long n) |
1439 | { | 1437 | { |