Skip to content

Commit

Permalink
m68k: convert to csum_and_copy_from_user()
Browse files Browse the repository at this point in the history
trivial access_ok() there...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed May 29, 2020
1 parent d341659 commit 8084c99
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion arch/m68k/include/asm/checksum.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ __wsum csum_partial(const void *buff, int len, __wsum sum);
* better 64-bit) boundary
*/

extern __wsum csum_partial_copy_from_user(const void __user *src,
#define _HAVE_ARCH_COPY_AND_CSUM_FROM_USER
extern __wsum csum_and_copy_from_user(const void __user *src,
void *dst,
int len, __wsum sum,
int *csum_err);
Expand Down
4 changes: 2 additions & 2 deletions arch/m68k/lib/checksum.c
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ EXPORT_SYMBOL(csum_partial);
*/

__wsum
csum_partial_copy_from_user(const void __user *src, void *dst,
csum_and_copy_from_user(const void __user *src, void *dst,
int len, __wsum sum, int *csum_err)
{
/*
Expand Down Expand Up @@ -316,7 +316,7 @@ csum_partial_copy_from_user(const void __user *src, void *dst,
return(sum);
}

EXPORT_SYMBOL(csum_partial_copy_from_user);
EXPORT_SYMBOL(csum_and_copy_from_user);


/*
Expand Down

0 comments on commit 8084c99

Please sign in to comment.