diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1999-01-04 16:03:48 +0000 |
commit | 78c388aed2b7184182c08428db1de6c872d815f5 (patch) | |
tree | 4b2003b1b4ceb241a17faa995da8dd1004bb8e45 /include/asm-ppc/uaccess.h | |
parent | eb7a5bf93aaa4be1d7c6181100ab7639e74d67f7 (diff) |
Merge with Linux 2.1.131 and more MIPS goodies.
(Did I mention that CVS is buggy ...)
Diffstat (limited to 'include/asm-ppc/uaccess.h')
-rw-r--r-- | include/asm-ppc/uaccess.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/asm-ppc/uaccess.h b/include/asm-ppc/uaccess.h index 65ca165b7..b22b81511 100644 --- a/include/asm-ppc/uaccess.h +++ b/include/asm-ppc/uaccess.h @@ -211,12 +211,9 @@ extern int __copy_tofrom_user(void *to, const void *from, unsigned long size); extern inline unsigned long copy_from_user(void *to, const void *from, unsigned long n) { - unsigned long res = n; - if (access_ok(VERIFY_READ, from, n)) { - res = __copy_tofrom_user(to, from, n); - if (res) memset((char *)to + n - res, 0, res); - } - return res; + if (access_ok(VERIFY_READ, from, n)) + return __copy_tofrom_user(to, from, n); + return n; } extern inline unsigned long |