summaryrefslogtreecommitdiff
path: root/arch/ia64/lib
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2020-02-16 15:10:33 -0500
committerAl Viro <viro@zeniv.linux.org.uk>2020-05-29 16:11:48 -0400
commitcc03f19cfd45f44a75f0445c5be0073bbd3dda1c (patch)
tree96f6ecade44a87b0c2886e675afa41bd0313493f /arch/ia64/lib
parentc281a6c1ac6b0867e4341ea801030fa9a62157f9 (diff)
ia64: csum_partial_copy_nocheck(): don't abuse csum_partial_copy_from_user()
Just inline the call and use memcpy() instead of __copy_from_user() and note that the tail is precisely ia64 csum_partial(). Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64/lib')
-rw-r--r--arch/ia64/lib/csum_partial_copy.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/ia64/lib/csum_partial_copy.c b/arch/ia64/lib/csum_partial_copy.c
index bf9396b1ed32..9ab570d0f756 100644
--- a/arch/ia64/lib/csum_partial_copy.c
+++ b/arch/ia64/lib/csum_partial_copy.c
@@ -134,8 +134,8 @@ EXPORT_SYMBOL(csum_partial_copy_from_user);
__wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
{
- return csum_partial_copy_from_user((__force const void __user *)src,
- dst, len, sum, NULL);
+ memcpy(dst, src, len);
+ return csum_partial(dst, len, sum);
}
EXPORT_SYMBOL(csum_partial_copy_nocheck);