| Submitter | Stanislav Kinsbursky |
|---|---|
| Date | Aug. 22, 2012, 9:14 a.m. |
| Message ID | <5034A302.4090406@parallels.com> |
| Download | mbox | patch |
| Permalink | /patch/179268/ |
| State | RFC |
| Delegated to: | David Miller |
| Headers | show |
Comments
Patch
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; }