From: Herbert Xu Date: Wed, 22 Aug 2007 04:09:15 +0000 (-0700) Subject: NET: Fix missing rcu unlock in __sock_create() X-Git-Tag: v2.6.22.6~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b13778e09272469203cb8d100defd8047a2117df;p=thirdparty%2Fkernel%2Fstable.git 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 Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- diff --git a/net/socket.c b/net/socket.c index f4530196a70a3..0010da086acfa 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;