Loading net/unix/af_unix.c +31 −29 Original line number Original line Diff line number Diff line Loading @@ -1984,7 +1984,9 @@ static int unix_shutdown(struct socket *sock, int mode) mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN); mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN); if (mode) { if (!mode) return 0; unix_state_lock(sk); unix_state_lock(sk); sk->sk_shutdown |= mode; sk->sk_shutdown |= mode; other = unix_peer(sk); other = unix_peer(sk); Loading Loading @@ -2013,7 +2015,7 @@ static int unix_shutdown(struct socket *sock, int mode) } } if (other) if (other) sock_put(other); sock_put(other); } return 0; return 0; } } Loading Loading
net/unix/af_unix.c +31 −29 Original line number Original line Diff line number Diff line Loading @@ -1984,7 +1984,9 @@ static int unix_shutdown(struct socket *sock, int mode) mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN); mode = (mode+1)&(RCV_SHUTDOWN|SEND_SHUTDOWN); if (mode) { if (!mode) return 0; unix_state_lock(sk); unix_state_lock(sk); sk->sk_shutdown |= mode; sk->sk_shutdown |= mode; other = unix_peer(sk); other = unix_peer(sk); Loading Loading @@ -2013,7 +2015,7 @@ static int unix_shutdown(struct socket *sock, int mode) } } if (other) if (other) sock_put(other); sock_put(other); } return 0; return 0; } } Loading