diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-08-15 14:46:02 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-08-15 14:46:02 -0700 |
commit | 3b1855255098e1f78fa74c0f3378c0391e9a7a2b (patch) | |
tree | 1478418d585bc29ef4d2029819748e98004fff4c /net/socket.c | |
parent | cd8d60f28f519786f00d64d68bb3b7669bdfbcb8 (diff) | |
download | linux-3.10-3b1855255098e1f78fa74c0f3378c0391e9a7a2b.tar.gz linux-3.10-3b1855255098e1f78fa74c0f3378c0391e9a7a2b.tar.bz2 linux-3.10-3b1855255098e1f78fa74c0f3378c0391e9a7a2b.zip |
[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>
Diffstat (limited to 'net/socket.c')
-rw-r--r-- | net/socket.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index ec077037f53..7d44453dfae 100644 --- a/net/socket.c +++ b/net/socket.c @@ -1168,7 +1168,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; |