summaryrefslogtreecommitdiff
path: root/arch/x86/lib/usercopy_64.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-03-26 01:36:22 +0300
committerAl Viro <viro@zeniv.linux.org.uk>2017-03-29 01:24:04 +0300
commit122b05ddf506e637336dcf64b5a129825f7bf6d4 (patch)
treee8addfa4b5747e198698c0d54789b077cf2a92a0 /arch/x86/lib/usercopy_64.c
parentd597580d373774b1bdab84b3d26ff0b55162b916 (diff)
downloadlinux-122b05ddf506e637336dcf64b5a129825f7bf6d4.tar.xz
amd64: get rid of zeroing
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/lib/usercopy_64.c')
-rw-r--r--arch/x86/lib/usercopy_64.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/arch/x86/lib/usercopy_64.c b/arch/x86/lib/usercopy_64.c
index 69873589c0ba..6c8b6a6c1b38 100644
--- a/arch/x86/lib/usercopy_64.c
+++ b/arch/x86/lib/usercopy_64.c
@@ -80,9 +80,5 @@ copy_user_handle_tail(char *to, char *from, unsigned len)
break;
}
clac();
-
- /* If the destination is a kernel buffer, we always clear the end */
- if (!__addr_ok(to))
- memset(to, 0, len);
return len;
}