diff options
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index fee9e3397cd1..86de99ad2976 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -1669,7 +1669,8 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock, | |||
1669 | skb_put(skb, size - data_len); | 1669 | skb_put(skb, size - data_len); |
1670 | skb->data_len = data_len; | 1670 | skb->data_len = data_len; |
1671 | skb->len = size; | 1671 | skb->len = size; |
1672 | err = skb_copy_datagram_from_iovec(skb, 0, msg->msg_iov, 0, size); | 1672 | err = skb_copy_datagram_from_iovec(skb, 0, msg->msg_iov, |
1673 | sent, size); | ||
1673 | if (err) { | 1674 | if (err) { |
1674 | kfree_skb(skb); | 1675 | kfree_skb(skb); |
1675 | goto out_err; | 1676 | goto out_err; |