|
@@ -827,6 +827,7 @@ int inet_shutdown(struct socket *sock, int how)
|
|
|
err = -ENOTCONN;
|
|
|
/* Hack to wake up other listeners, who can poll for
|
|
|
POLLHUP, even on eg. unconnected UDP sockets -- RR */
|
|
|
+ /* fall through */
|
|
|
default:
|
|
|
sk->sk_shutdown |= how;
|
|
|
if (sk->sk_prot->shutdown)
|
|
@@ -840,7 +841,7 @@ int inet_shutdown(struct socket *sock, int how)
|
|
|
case TCP_LISTEN:
|
|
|
if (!(how & RCV_SHUTDOWN))
|
|
|
break;
|
|
|
- /* Fall through */
|
|
|
+ /* fall through */
|
|
|
case TCP_SYN_SENT:
|
|
|
err = sk->sk_prot->disconnect(sk, O_NONBLOCK);
|
|
|
sock->state = err ? SS_DISCONNECTING : SS_UNCONNECTED;
|