mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 02:19:51 +01:00
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 <[email protected]>
This commit is contained in:
1 parent
c281a6c1ac
commit
cc03f19cfd
1 file changed
+2
-2
@@ -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);
|
||||
Reference in new issue
Block a user