aboutsummaryrefslogtreecommitdiff
path: root/arch/ia64/include/asm/checksum.h
diff options
context:
space:
mode:
authorAl Viro2020-02-18 12:56:09 -0500
committerAl Viro2020-05-29 16:11:48 -0400
commitbfdaf029c9c95072359fd0870c282e53953220f6 (patch)
tree028cb7c8c27e0df0a95ed325658c1c9db2657424 /arch/ia64/include/asm/checksum.h
parentcc03f19cfd45f44a75f0445c5be0073bbd3dda1c (diff)
ia64: turn csum_partial_copy_from_user() into csum_and_copy_from_user()
Just use copy_from_user() there, rather than relying upon the wrapper to have done access_ok() Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/ia64/include/asm/checksum.h')
-rw-r--r--arch/ia64/include/asm/checksum.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/ia64/include/asm/checksum.h b/arch/ia64/include/asm/checksum.h
index 0ed18bc3f6cf..279ea4dcee79 100644
--- a/arch/ia64/include/asm/checksum.h
+++ b/arch/ia64/include/asm/checksum.h
@@ -37,13 +37,14 @@ extern __wsum csum_tcpudp_nofold(__be32 saddr, __be32 daddr,
*/
extern __wsum csum_partial(const void *buff, int len, __wsum sum);
+#define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
/*
* Same as csum_partial, but copies from src while it checksums.
*
* Here it is even more important to align src and dst on a 32-bit (or
* even better 64-bit) boundary.
*/
-extern __wsum csum_partial_copy_from_user(const void __user *src, void *dst,
+extern __wsum csum_and_copy_from_user(const void __user *src, void *dst,
int len, __wsum sum,
int *errp);