Message ID | 5034A302.4090406@parallels.com |
---|---|
State | RFC, archived |
Delegated to: | David Miller |
Headers | show |
diff --git a/net/socket.c b/net/socket.c index dfe5b66..dab462b 100644 --- a/net/socket.c +++ b/net/socket.c @@ -526,8 +526,8 @@ void sock_release(struct socket *sock) if (test_bit(SOCK_EXTERNALLY_ALLOCATED, &sock->flags)) return; - this_cpu_sub(sockets_in_use, 1); if (!sock->file) { + this_cpu_sub(sockets_in_use, 1); iput(SOCK_INODE(sock)); return; }