aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/ip_sockglue.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/ip_sockglue.c')
-rw-r--r--net/ipv4/ip_sockglue.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/ip_sockglue.c b/net/ipv4/ip_sockglue.c
index c373a9ad4555..21894df66262 100644
--- a/net/ipv4/ip_sockglue.c
+++ b/net/ipv4/ip_sockglue.c
@@ -424,7 +424,7 @@ int ip_recv_error(struct sock *sk, struct msghdr *msg, int len, int *addr_len)
424 msg->msg_flags |= MSG_TRUNC; 424 msg->msg_flags |= MSG_TRUNC;
425 copied = len; 425 copied = len;
426 } 426 }
427 err = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); 427 err = skb_copy_datagram_msg(skb, 0, msg, copied);
428 if (err) 428 if (err)
429 goto out_free_skb; 429 goto out_free_skb;
430 430