]> err.no Git - linux-2.6/commitdiff
[NET]: Fix unbalanced rcu_read_unlock in __sock_create
authorHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Aug 2007 21:46:02 +0000 (14:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Aug 2007 21:46:02 +0000 (14:46 -0700)
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>
net/socket.c

index ec077037f534b6a3265342fc0ccfd1dd56893505..7d44453dfae13a43a4e4a1a72e077ff644d96661 100644 (file)
@@ -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;