From: Herbert Xu Date: Wed, 22 Aug 2007 04:09:15 +0000 (-0700) Subject: [PATCH] NET: Fix missing rcu unlock in __sock_create() X-Git-Tag: v2.6.20.21~25 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=10b726e7cd765ef571109e386882cd2e2d77b9af;p=thirdparty%2Fkernel%2Fstable.git [PATCH] 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 afb6085827ca4..d9bae013b8c8c 100644 --- a/net/socket.c +++ b/net/socket.c @@ -1147,7 +1147,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;