From: Herbert Xu Date: Wed, 15 Aug 2007 21:46:02 +0000 (-0700) Subject: [NET]: Fix unbalanced rcu_read_unlock in __sock_create X-Git-Tag: v2.6.23-rc4~128^2~1 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b1855255098e1f78fa74c0f3378c0391e9a7a2b;p=linux-2.6 [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 Signed-off-by: David S. Miller --- diff --git a/net/socket.c b/net/socket.c index ec077037f5..7d44453dfa 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;