提交 14aa1361 编写于 作者: R Ralf Baechle

MIPS: uaccess.h: Fix strnlen_user comment.

Signed-off-by: NRalf Baechle <ralf@linux-mips.org>
上级 83fd4344
...@@ -1422,7 +1422,7 @@ static inline long __strnlen_user(const char __user *s, long n) ...@@ -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. * @str: The string to measure.
* *
* Context: User context only. This function may sleep. * Context: User context only. This function may sleep.
...@@ -1431,9 +1431,7 @@ static inline long __strnlen_user(const char __user *s, long n) ...@@ -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. * Returns the size of the string INCLUDING the terminating NUL.
* On exception, returns 0. * On exception, returns 0.
* * If the string is too long, returns a value greater than @n.
* If there is a limit on the length of a valid string, you may wish to
* consider using strnlen_user() instead.
*/ */
static inline long strnlen_user(const char __user *s, long n) static inline long strnlen_user(const char __user *s, long n)
{ {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册