From deb0d7c740a008a4e26806317497549b0e8907eb Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Thu, 24 Jun 2010 20:33:04 -0700 Subject: [PATCH] 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 --- net/core/netpoll.c | 1 - 1 file changed, 1 deletion(-) 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; -- 2.20.1