diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2007-08-21 21:09:15 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2007-08-30 23:01:50 -0700 |
commit | b13778e09272469203cb8d100defd8047a2117df (patch) | |
tree | af46376c5d06d16c84a6f9d31af3bfa86d8a3e28 /net | |
parent | 6ec3b79f45f813c9957c2a7af25e0e1ec53e6f1a (diff) |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/socket.c b/net/socket.c index f4530196a70..0010da086ac 100644 --- a/net/socket.c +++ b/net/socket.c @@ -1169,7 +1169,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; |