diff options
author | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-11 14:54:22 +0100 |
---|---|---|
committer | Samuel Ortiz <sameo@linux.intel.com> | 2013-01-11 14:56:32 +0100 |
commit | fb97c3e80f99988079df4fb5f3c84aea4e7f806a (patch) | |
tree | 71bcd079de22210d37f2dcdc8bf7ebdf84e4ac57 /net/nfc | |
parent | fad2e371bb5a9f64dced90309fa7cb8bce09e92f (diff) | |
download | talos-obmc-linux-fb97c3e80f99988079df4fb5f3c84aea4e7f806a.tar.gz talos-obmc-linux-fb97c3e80f99988079df4fb5f3c84aea4e7f806a.zip |
NFC: Use skb_copy_datagram_iovec
Safer and more robust than than memcpy_toiovec.
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Diffstat (limited to 'net/nfc')
-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 463231bed8d4..5332751943a9 100644 --- a/net/nfc/llcp/sock.c +++ b/net/nfc/llcp/sock.c @@ -672,7 +672,7 @@ static int llcp_sock_recvmsg(struct kiocb *iocb, struct socket *sock, copied = min_t(unsigned int, rlen, len); cskb = skb; - if (memcpy_toiovec(msg->msg_iov, cskb->data, copied)) { + if (skb_copy_datagram_iovec(cskb, 0, msg->msg_iov, copied)) { if (!(flags & MSG_PEEK)) skb_queue_head(&sk->sk_receive_queue, skb); return -EFAULT; |