aboutsummaryrefslogtreecommitdiffstats
path: root/net/nfc/rawsock.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/nfc/rawsock.c')
-rw-r--r--net/nfc/rawsock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfc/rawsock.c b/net/nfc/rawsock.c
index 11c3544ea546..9d7d2b7ba5e4 100644
--- a/net/nfc/rawsock.c
+++ b/net/nfc/rawsock.c
@@ -269,7 +269,7 @@ static int rawsock_recvmsg(struct kiocb *iocb, struct socket *sock,
269 copied = len; 269 copied = len;
270 } 270 }
271 271
272 rc = skb_copy_datagram_iovec(skb, 0, msg->msg_iov, copied); 272 rc = skb_copy_datagram_msg(skb, 0, msg, copied);
273 273
274 skb_free_datagram(sk, skb); 274 skb_free_datagram(sk, skb);
275 275