diff options
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r-- | net/unix/af_unix.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c index ce8bb5fef3f4..4757f1cf6237 100644 --- a/net/unix/af_unix.c +++ b/net/unix/af_unix.c @@ -1961,7 +1961,7 @@ static int unix_stream_recvmsg(struct kiocb *iocb, struct socket *sock, struct sk_buff *skb, *last; unix_state_lock(sk); - if (sock_flag(sg, SOCK_DEAD)) { + if (sock_flag(sk, SOCK_DEAD)) { err = -ECONNRESET; goto unlock; } |