new helper: memcpy_from_msg()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -660,7 +660,7 @@ int ping_common_sendmsg(int family, struct msghdr *msg, size_t len,
|
||||
* Fetch the ICMP header provided by the userland.
|
||||
* iovec is modified! The ICMP header is consumed.
|
||||
*/
|
||||
if (memcpy_fromiovec(user_icmph, msg->msg_iov, icmph_len))
|
||||
if (memcpy_from_msg(user_icmph, msg, icmph_len))
|
||||
return -EFAULT;
|
||||
|
||||
if (family == AF_INET) {
|
||||
|
Reference in New Issue
Block a user