Skip to content

Commit

Permalink
[NET]: Fix unbalanced rcu_read_unlock in __sock_create
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Herbert Xu authored and David S. Miller committed Aug 15, 2007
1 parent cd8d60f commit 3b18552
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3b18552

Please sign in to comment.