mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-03-07 09:16:49 +07:00
switch memcpy_from_msg() to copy_from_iter_full()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
parent
dc88e3b4c8
commit
3073f070a1
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user