aboutsummaryrefslogtreecommitdiff
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.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 7b9daf6422f..0580865bf36 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1257,14 +1257,12 @@ restart:
}
/* Latch our state.
-
It is tricky place. We need to grab our state lock and cannot
drop lock on peer. It is dangerous because deadlock is
possible. Connect to self case and simultaneous
attempt to connect are eliminated by checking socket
state. other is TCP_LISTEN, if sk is TCP_LISTEN we
check this before attempt to grab lock.
-
Well, and we have to recheck the state after socket locked.
*/
st = sk->sk_state;
@@ -2010,11 +2008,9 @@ static int unix_dgram_recvmsg(struct kiocb *iocb, struct socket *sock,
apparently wrong)
- clone fds (I chose it for now, it is the most universal
solution)
-
POSIX 1003.1g does not actually define this clearly
at all. POSIX 1003.1g doesn't define a lot of things
clearly however!
-
*/
sk_peek_offset_fwd(sk, size);