summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 513d0fd12e6a..b8adfb41d11b 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -2075,7 +2075,6 @@ restart_locked:
* datagram error
*/
unix_state_unlock(other);
- sock_put(other);
if (!sk_locked)
unix_state_lock(sk);
@@ -2104,7 +2103,6 @@ restart_locked:
err = -ECONNRESET;
}
- other = NULL;
if (err)
goto out_free;