mn10300: switch to RAW_COPY_USER

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2017-03-21 12:06:57 -04:00
parent 4df3715efe
commit 19dbf70c5a
4 changed files with 5 additions and 54 deletions

View File

@@ -11,25 +11,6 @@
*/
#include <linux/uaccess.h>
unsigned long
__generic_copy_to_user(void *to, const void *from, unsigned long n)
{
if (access_ok(VERIFY_WRITE, to, n))
__copy_user(to, from, n);
return n;
}
unsigned long
__generic_copy_from_user(void *to, const void *from, unsigned long n)
{
unsigned long res = n;
if (access_ok(VERIFY_READ, from, res))
__copy_user(to, from, res);
if (unlikely(res))
memset(to + n - res, 0, res);
return res;
}
/*
* Copy a null terminated string from userspace.
*/