Skip to content

Commit e914552

Browse files
akpm00torvalds
authored andcommitted
mm/util.c: fix strndup_user() comment
The kerneldoc misdescribes strndup_user()'s return value. Cc: Dan Carpenter <dan.carpenter@oracle.com> Cc: Timur Tabi <timur@freescale.com> Cc: Mihai Caraman <mihai.caraman@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent acaf892 commit e914552

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mm/util.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ EXPORT_SYMBOL(vmemdup_user);
204204
* @s: The string to duplicate
205205
* @n: Maximum number of bytes to copy, including the trailing NUL.
206206
*
207-
* Return: newly allocated copy of @s or %NULL in case of error
207+
* Return: newly allocated copy of @s or an ERR_PTR() in case of error
208208
*/
209209
char *strndup_user(const char __user *s, long n)
210210
{

0 commit comments

Comments
 (0)