diff options
| author | Alexander Viro <viro@www.linux.org.uk> | 2004-08-31 02:42:13 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-31 02:42:13 -0700 |
| commit | db469a27617976e765e111fd6fd3660b716daebf (patch) | |
| tree | 3f4917646194bc5640e24bcc640978154a280c39 | |
| parent | ddcd2bb171a00429f6f1c6cf42c47f8888c14650 (diff) | |
[PATCH] alpha csum_partial_copy.c annotations
Signed-off-by: Al Viro <viro@parcelfarce.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | arch/alpha/lib/csum_partial_copy.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/alpha/lib/csum_partial_copy.c b/arch/alpha/lib/csum_partial_copy.c index 3e0da493b2d0..4af102219a49 100644 --- a/arch/alpha/lib/csum_partial_copy.c +++ b/arch/alpha/lib/csum_partial_copy.c @@ -193,7 +193,8 @@ csum_partial_cfu_dest_aligned(const unsigned long __user *src, * This is slightly less fun than the above.. */ static inline unsigned long -csum_partial_cfu_src_aligned(const unsigned long *src, unsigned long *dst, +csum_partial_cfu_src_aligned(const unsigned long __user *src, + unsigned long *dst, unsigned long doff, long len, unsigned long checksum, unsigned long partial_dest, @@ -372,7 +373,7 @@ unsigned int csum_partial_copy_from_user(const char __user *src, char *dst, int len, unsigned int sum, int *errp) { - if (!access_ok(src, len, VERIFY_READ)) { + if (!access_ok(VERIFY_READ, src, len)) { *errp = -EFAULT; memset(dst, 0, len); return sum; |
