new helper: memcpy_from_msg()

Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
Al Viro 2014-04-06 21:25:44 -04:00
commit 6ce8e9ce59
36 changed files with 57 additions and 57 deletions

View file

@ -2325,7 +2325,7 @@ static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock,
NETLINK_CB(skb).flags = netlink_skb_flags;
err = -EFAULT;
if (memcpy_fromiovec(skb_put(skb, len), msg->msg_iov, len)) {
if (memcpy_from_msg(skb_put(skb, len), msg, len)) {
kfree_skb(skb);
goto out;
}