projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc88e3b
)
switch memcpy_from_msg() to copy_from_iter_full()
author
Al Viro
<viro@zeniv.linux.org.uk>
Sat, 18 Feb 2017 04:13:25 +0000
(23:13 -0500)
committer
Al Viro
<viro@zeniv.linux.org.uk>
Fri, 21 Apr 2017 17:57:16 +0000
(13:57 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
include/linux/skbuff.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/skbuff.h
b/include/linux/skbuff.h
index c776abd86937f52b002773728b5611746f199281..53383bce27f126e88c607e6fce901f5f6a241070 100644
(file)
--- a/
include/linux/skbuff.h
+++ b/
include/linux/skbuff.h
@@
-3113,7
+3113,7
@@
struct sk_buff *pskb_extract(struct sk_buff *skb, int off, int to_copy,
static inline int memcpy_from_msg(void *data, struct msghdr *msg, int len)
{
- return copy_from_iter
(data, len, &msg->msg_iter) == len
? 0 : -EFAULT;
+ return copy_from_iter
_full(data, len, &msg->msg_iter)
? 0 : -EFAULT;
}
static inline int memcpy_to_msg(struct msghdr *msg, void *data, int len)