diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2020-02-16 16:50:00 -0500 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-05-29 16:11:48 -0400 |
commit | 0a5ea224b2fdf9dca9291ef7b5a12fd846a5dc34 (patch) | |
tree | 1a4dac4be2cf16690a41bf9e80cb34d812df7c80 /arch/x86/include/asm/checksum_64.h | |
parent | 73e800ecb67bf24c0508c63350c1dc509f00b1ce (diff) | |
download | linux-stable-0a5ea224b2fdf9dca9291ef7b5a12fd846a5dc34.tar.gz linux-stable-0a5ea224b2fdf9dca9291ef7b5a12fd846a5dc34.tar.bz2 linux-stable-0a5ea224b2fdf9dca9291ef7b5a12fd846a5dc34.zip |
x86: switch both 32bit and 64bit to providing csum_and_copy_from_user()
... rather than messing with the wrapper. As a side effect,
32bit variant gets access_ok() into it and can be switched to
user_access_begin()/user_access_end()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/x86/include/asm/checksum_64.h')
-rw-r--r-- | arch/x86/include/asm/checksum_64.h | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/arch/x86/include/asm/checksum_64.h b/arch/x86/include/asm/checksum_64.h index ac9c06494827..2f8435542376 100644 --- a/arch/x86/include/asm/checksum_64.h +++ b/arch/x86/include/asm/checksum_64.h @@ -129,7 +129,6 @@ static inline __sum16 csum_tcpudp_magic(__be32 saddr, __be32 daddr, */ extern __wsum csum_partial(const void *buff, int len, __wsum sum); -#define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER 1 #define HAVE_CSUM_COPY_USER 1 @@ -139,15 +138,13 @@ extern __visible __wsum csum_partial_copy_generic(const void *src, const void *d int *src_err_ptr, int *dst_err_ptr); -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 isum, int *errp); extern __wsum csum_and_copy_to_user(const void *src, void __user *dst, int len, __wsum isum, int *errp); extern __wsum csum_partial_copy_nocheck(const void *src, void *dst, int len, __wsum sum); -#define csum_and_copy_from_user csum_partial_copy_from_user - /** * ip_compute_csum - Compute an 16bit IP checksum. * @buff: buffer address. |