]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - net/llc/af_llc.c
net: Add and use skb_copy_datagram_msg() helper.
[mirror_ubuntu-bionic-kernel.git] / net / llc / af_llc.c
index bb9cbc17d9267bc6f554f4ed985d3596fefcd91f..af662669f9513e4b643448d201846ca3fc647ccd 100644 (file)
@@ -819,8 +819,7 @@ static int llc_ui_recvmsg(struct kiocb *iocb, struct socket *sock,
                        used = len;
 
                if (!(flags & MSG_TRUNC)) {
-                       int rc = skb_copy_datagram_iovec(skb, offset,
-                                                        msg->msg_iov, used);
+                       int rc = skb_copy_datagram_msg(skb, offset, msg, used);
                        if (rc) {
                                /* Exception. Bailout! */
                                if (!copied)