diff options
Diffstat (limited to 'net/netlink')
-rw-r--r-- | net/netlink/af_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netlink/af_netlink.c b/net/netlink/af_netlink.c index f1de72de273e..580b79452bec 100644 --- a/net/netlink/af_netlink.c +++ b/net/netlink/af_netlink.c | |||
@@ -2401,7 +2401,7 @@ static int netlink_recvmsg(struct kiocb *kiocb, struct socket *sock, | |||
2401 | } | 2401 | } |
2402 | 2402 | ||
2403 | skb_reset_transport_header(data_skb); | 2403 | skb_reset_transport_header(data_skb); |
2404 | err = skb_copy_datagram_iovec(data_skb, 0, msg->msg_iov, copied); | 2404 | err = skb_copy_datagram_msg(data_skb, 0, msg, copied); |
2405 | 2405 | ||
2406 | if (msg->msg_name) { | 2406 | if (msg->msg_name) { |
2407 | DECLARE_SOCKADDR(struct sockaddr_nl *, addr, msg->msg_name); | 2407 | DECLARE_SOCKADDR(struct sockaddr_nl *, addr, msg->msg_name); |