diff options
Diffstat (limited to 'net/unix/af_unix.c')
| -rw-r--r-- | net/unix/af_unix.c | 2 | 
1 files changed, 2 insertions, 0 deletions
| diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index eb90f77bb0e..66d5ac4773a 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1343,6 +1343,7 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,  	if (NULL == siocb->scm)  		siocb->scm = &tmp_scm; +	wait_for_unix_gc();  	err = scm_send(sock, msg, siocb->scm);  	if (err < 0)  		return err; @@ -1493,6 +1494,7 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,  	if (NULL == siocb->scm)  		siocb->scm = &tmp_scm; +	wait_for_unix_gc();  	err = scm_send(sock, msg, siocb->scm);  	if (err < 0)  		return err; | 
