Signed-off-by: Vladimir Davydov <[email protected]>
---
 net/unix/af_unix.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index e96884380732..2948f39b9a4f 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -478,7 +478,6 @@ static int unix_listen(struct socket *sock, int backlog)
        int err;
        struct sock *sk = sock->sk;
        struct unix_sock *u = unix_sk(sk);
-       struct pid *old_pid = NULL;
 
        err = -EOPNOTSUPP;
        if (sock->type != SOCK_STREAM && sock->type != SOCK_SEQPACKET)
@@ -499,7 +498,6 @@ static int unix_listen(struct socket *sock, int backlog)
 
 out_unlock:
        unix_state_unlock(sk);
-       put_pid(old_pid);
 out:
        return err;
 }
-- 
1.7.10.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to