Loading net/unix/af_unix.c +1 −4 Original line number Original line Diff line number Diff line Loading @@ -441,7 +441,7 @@ static int unix_release_sock(struct sock *sk, int embrion) /* ---- Socket is dead now and most probably destroyed ---- */ /* ---- Socket is dead now and most probably destroyed ---- */ /* /* * Fixme: BSD difference: In BSD all sockets connected to use get * Fixme: BSD difference: In BSD all sockets connected to us get * ECONNRESET and we die on the spot. In Linux we behave * ECONNRESET and we die on the spot. In Linux we behave * like files and pipes do and wait for the last * like files and pipes do and wait for the last * dereference. * dereference. Loading Loading @@ -481,7 +481,6 @@ static int unix_listen(struct socket *sock, int backlog) struct sock *sk = sock->sk; struct sock *sk = sock->sk; struct unix_sock *u = unix_sk(sk); struct unix_sock *u = unix_sk(sk); struct pid *old_pid = NULL; struct pid *old_pid = NULL; const struct cred *old_cred = NULL; err = -EOPNOTSUPP; err = -EOPNOTSUPP; if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET) if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET) Loading @@ -503,8 +502,6 @@ static int unix_listen(struct socket *sock, int backlog) out_unlock: out_unlock: unix_state_unlock(sk); unix_state_unlock(sk); put_pid(old_pid); put_pid(old_pid); if (old_cred) put_cred(old_cred); out: out: return err; return err; } } Loading Loading
net/unix/af_unix.c +1 −4 Original line number Original line Diff line number Diff line Loading @@ -441,7 +441,7 @@ static int unix_release_sock(struct sock *sk, int embrion) /* ---- Socket is dead now and most probably destroyed ---- */ /* ---- Socket is dead now and most probably destroyed ---- */ /* /* * Fixme: BSD difference: In BSD all sockets connected to use get * Fixme: BSD difference: In BSD all sockets connected to us get * ECONNRESET and we die on the spot. In Linux we behave * ECONNRESET and we die on the spot. In Linux we behave * like files and pipes do and wait for the last * like files and pipes do and wait for the last * dereference. * dereference. Loading Loading @@ -481,7 +481,6 @@ static int unix_listen(struct socket *sock, int backlog) struct sock *sk = sock->sk; struct sock *sk = sock->sk; struct unix_sock *u = unix_sk(sk); struct unix_sock *u = unix_sk(sk); struct pid *old_pid = NULL; struct pid *old_pid = NULL; const struct cred *old_cred = NULL; err = -EOPNOTSUPP; err = -EOPNOTSUPP; if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET) if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET) Loading @@ -503,8 +502,6 @@ static int unix_listen(struct socket *sock, int backlog) out_unlock: out_unlock: unix_state_unlock(sk); unix_state_unlock(sk); put_pid(old_pid); put_pid(old_pid); if (old_cred) put_cred(old_cred); out: out: return err; return err; } } Loading