projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acaf892
)
mm/util.c: fix strndup_user() comment
author
Andrew Morton
<
[email protected]
>
Sat, 6 Apr 2019 01:39:34 +0000
(18:39 -0700)
committer
Linus Torvalds
<
[email protected]
>
Sat, 6 Apr 2019 02:02:31 +0000
(16:02 -1000)
The kerneldoc misdescribes strndup_user()'s return value.
Cc: Dan Carpenter <
[email protected]
>
Cc: Timur Tabi <
[email protected]
>
Cc: Mihai Caraman <
[email protected]
>
Cc: Kumar Gala <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/util.c
patch
|
blob
|
history
diff --git
a/mm/util.c
b/mm/util.c
index d559bde497a9b9690f328f6f5deea3eb17de474b..43a2984bccaab6525afb6e7c61ce8d903f45f24e 100644
(file)
--- a/
mm/util.c
+++ b/
mm/util.c
@@
-204,7
+204,7
@@
EXPORT_SYMBOL(vmemdup_user);
* @s: The string to duplicate
* @n: Maximum number of bytes to copy, including the trailing NUL.
*
- * Return: newly allocated copy of @s or
%NULL
in case of error
+ * Return: newly allocated copy of @s or
an ERR_PTR()
in case of error
*/
char *strndup_user(const char __user *s, long n)
{