ixgbe: reinit_locked() should be called with rtnl_lock
authorJohn Fastabend <john.r.fastabend@intel.com>
Thu, 16 Jan 2014 10:30:05 +0000 (02:30 -0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Jan 2014 23:34:24 +0000 (15:34 -0800)
commit8f4c5c9fb87aa113f33ddeb4028fb0de8e18311d
treedad6cbc28f3e956635ba1ce9b31f03af0587aea4
parent0864c158836c2d0edb61f7128475e192b09bc851
ixgbe: reinit_locked() should be called with rtnl_lock

ixgbe_service_task() is calling ixgbe_reinit_locked() without
the rtnl_lock being held. This is because it is being called
from a worker thread and not a rtnl netlink or dcbnl path.

Add rtnl_{un}lock() semantics. I found this during code review.

Signed-off-by: John Fastabend <john.r.fastabend@intel.com>
Tested-by: Phil Schmitt <phillip.j.schmitt@intel.com>
Signed-off-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c