Skip to content

Commit 8f4c5c9

Browse files
John Fastabenddavem330
authored andcommitted
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 <[email protected]> Tested-by: Phil Schmitt <[email protected]> Signed-off-by: Aaron Brown <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 0864c15 commit 8f4c5c9

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/ixgbe/ixgbe_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6392,7 +6392,9 @@ static void ixgbe_reset_subtask(struct ixgbe_adapter *adapter)
63926392
netdev_err(adapter->netdev, "Reset adapter\n");
63936393
adapter->tx_timeout_count++;
63946394

6395+
rtnl_lock();
63956396
ixgbe_reinit_locked(adapter);
6397+
rtnl_unlock();
63966398
}
63976399

63986400
/**

0 commit comments

Comments
 (0)