aboutsummaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2007-08-21 21:09:15 -0700
committerWilly Tarreau <w@1wt.eu>2007-10-17 21:30:25 +0200
commit10b726e7cd765ef571109e386882cd2e2d77b9af (patch)
tree34a6016e297d307bd4dc3b1c19f88d8842e5f5b4 /net
parent28c191e3e4ba5bbd5f163e43ccd0d94ac2dcf6c7 (diff)
[PATCH] NET: Fix missing rcu unlock in __sock_create()
[NET]: Fix unbalanced rcu_read_unlock in __sock_create The recent RCU work created an unbalanced rcu_read_unlock in __sock_create. This patch fixes that. Reported by oleg 123. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'net')
-rw-r--r--net/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c
index afb6085827c..d9bae013b8c 100644
--- a/net/socket.c
+++ b/net/socket.c
@@ -1147,7 +1147,7 @@ static int __sock_create(int family, int type, int protocol,
module_put(pf->owner);
err = security_socket_post_create(sock, family, type, protocol, kern);
if (err)
- goto out_release;
+ goto out_sock_release;
*res = sock;
return 0;