From: Andrew Morton Date: Fri, 25 Jun 2010 03:33:04 +0000 (-0700) Subject: net: fix "netpoll: Allow netpoll_setup/cleanup recursion" X-Git-Tag: firefly_0821_release~9833^2~1306^2~489 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=deb0d7c740a008a4e26806317497549b0e8907eb;p=firefly-linux-kernel-4.4.55.git net: fix "netpoll: Allow netpoll_setup/cleanup recursion" Remove rtnl_unlock() which had no corresponding rtnl_lock(). Signed-off-by: Andrew Morton Acked-by: Herbert Xu Signed-off-by: David S. Miller --- diff --git a/net/core/netpoll.c b/net/core/netpoll.c index 560297ee55b4..ca6dc31843ea 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -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;