Commit cc03f19c authored by Al Viro's avatar Al Viro

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: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent c281a6c1
...@@ -134,8 +134,8 @@ EXPORT_SYMBOL(csum_partial_copy_from_user); ...@@ -134,8 +134,8 @@ EXPORT_SYMBOL(csum_partial_copy_from_user);
__wsum __wsum
csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum) csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum)
{ {
return csum_partial_copy_from_user((__force const void __user *)src, memcpy(dst, src, len);
dst, len, sum, NULL); return csum_partial(dst, len, sum);
} }
EXPORT_SYMBOL(csum_partial_copy_nocheck); EXPORT_SYMBOL(csum_partial_copy_nocheck);
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment