git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
x86/asm/memcpy_mcsafe: Define copy_to_iter_mcsafe()
[sfrench/cifs-2.6.git]
/
arch
/
x86
/
include
/
asm
/
uaccess_64.h
diff --git
a/arch/x86/include/asm/uaccess_64.h
b/arch/x86/include/asm/uaccess_64.h
index c63efc07891f1c1bfbb9f3624effaddd771eb3ad..62acb613114b2322088083f7a9ccc85495a5afa4 100644
(file)
--- a/
arch/x86/include/asm/uaccess_64.h
+++ b/
arch/x86/include/asm/uaccess_64.h
@@
-46,6
+46,17
@@
copy_user_generic(void *to, const void *from, unsigned len)
return ret;
}
return ret;
}
+static __always_inline __must_check unsigned long
+copy_to_user_mcsafe(void *to, const void *from, unsigned len)
+{
+ unsigned long ret;
+
+ __uaccess_begin();
+ ret = memcpy_mcsafe(to, from, len);
+ __uaccess_end();
+ return ret;
+}
+
static __always_inline __must_check unsigned long
raw_copy_from_user(void *dst, const void __user *src, unsigned long size)
{
static __always_inline __must_check unsigned long
raw_copy_from_user(void *dst, const void __user *src, unsigned long size)
{