diff options
Diffstat (limited to 'net')
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index 0be4d24f6ae8..8ee85aa79fa7 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c | |||
@@ -1845,7 +1845,7 @@ static int unix_dgram_recvmsg(struct kiocb *iocb, struct socket *sock, | |||
1845 | if (UNIXCB(skb).fp) | 1845 | if (UNIXCB(skb).fp) |
1846 | siocb->scm->fp = scm_fp_dup(UNIXCB(skb).fp); | 1846 | siocb->scm->fp = scm_fp_dup(UNIXCB(skb).fp); |
1847 | } | 1847 | } |
1848 | err = size; | 1848 | err = (flags & MSG_TRUNC) ? skb->len - skip : size; |
1849 | 1849 | ||
1850 | scm_recv(sock, msg, siocb->scm, flags); | 1850 | scm_recv(sock, msg, siocb->scm, flags); |
1851 | 1851 | ||