diff options
Diffstat (limited to 'net/nfc/llcp_sock.c')
-rw-r--r-- | net/nfc/llcp_sock.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/llcp_sock.c b/net/nfc/llcp_sock.c index 51f077a92fa9..83bc785d5855 100644 --- a/net/nfc/llcp_sock.c +++ b/net/nfc/llcp_sock.c | |||
@@ -832,7 +832,7 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
832 | copied = min_t(unsigned int, rlen, len); | 832 | copied = min_t(unsigned int, rlen, len); |
833 | 833 | ||
834 | cskb = skb; | 834 | cskb = skb; |
835 | if (skb_copy_datagram_iovec(cskb, 0, msg->msg_iov, copied)) { | 835 | if (skb_copy_datagram_msg(cskb, 0, msg, copied)) { |
836 | if (!(flags & MSG_PEEK)) | 836 | if (!(flags & MSG_PEEK)) |
837 | skb_queue_head(&sk->sk_receive_queue, skb); | 837 | skb_queue_head(&sk->sk_receive_queue, skb); |
838 | return -EFAULT; | 838 | return -EFAULT; |