net: fix "netpoll: Allow netpoll_setup/cleanup recursion"
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 25 Jun 2010 03:33:04 +0000 (20:33 -0700)
committerDavid S. Miller <davem@davemloft.net>
Fri, 25 Jun 2010 03:33:04 +0000 (20:33 -0700)
Remove rtnl_unlock() which had no corresponding rtnl_lock().

Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/netpoll.c

index 560297ee55b40124c9da83a2d676e349b19eca51..ca6dc31843eaf9ca7f3cc480ad70481b63971fd1 100644 (file)
@@ -748,7 +748,6 @@ int __netpoll_setup(struct netpoll *np)
 
        /* last thing to do is link it to the net device structure */
        rcu_assign_pointer(ndev->npinfo, npinfo);
-       rtnl_unlock();
 
        return 0;