aboutsummaryrefslogtreecommitdiff
path: root/arch/x86_64/lib/usercopy.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86_64/lib/usercopy.c')
-rw-r--r--arch/x86_64/lib/usercopy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86_64/lib/usercopy.c b/arch/x86_64/lib/usercopy.c
index a82bfacdb1a..893d43f838c 100644
--- a/arch/x86_64/lib/usercopy.c
+++ b/arch/x86_64/lib/usercopy.c
@@ -55,7 +55,7 @@ strncpy_from_user(char *dst, const char __user *src, long count)
{
long res = -EFAULT;
if (access_ok(VERIFY_READ, src, 1))
- __do_strncpy_from_user(dst, src, count, res);
+ return __strncpy_from_user(dst, src, count);
return res;
}
EXPORT_SYMBOL(strncpy_from_user);