aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 5aaf23e43f1d..92f52abd3515 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1351,6 +1351,7 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
1351 1351
1352 if (NULL == siocb->scm) 1352 if (NULL == siocb->scm)
1353 siocb->scm = &tmp_scm; 1353 siocb->scm = &tmp_scm;
1354 wait_for_unix_gc();
1354 err = scm_send(sock, msg, siocb->scm); 1355 err = scm_send(sock, msg, siocb->scm);
1355 if (err < 0) 1356 if (err < 0)
1356 return err; 1357 return err;
@@ -1501,6 +1502,7 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
1501 1502
1502 if (NULL == siocb->scm) 1503 if (NULL == siocb->scm)
1503 siocb->scm = &tmp_scm; 1504 siocb->scm = &tmp_scm;
1505 wait_for_unix_gc();
1504 err = scm_send(sock, msg, siocb->scm); 1506 err = scm_send(sock, msg, siocb->scm);
1505 if (err < 0) 1507 if (err < 0)
1506 return err; 1508 return err;