mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[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>
This commit is contained in:
parent
cd8d60f28f
commit
3b18552550
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue