Browse Source

ixgbevf: Add lock around ixgbevf_reinit_locked call

The function ixgbevf_reinit_locked() assumes you have the rtnl lock
however we didn't when calling from the service task.  This patch
corrects that.

Signed-off-by: Don Skidmore <donald.c.skidmore@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Don Skidmore 9 years ago
parent
commit
8e8247ab98
1 changed files with 2 additions and 0 deletions
  1. 2 0
      drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

+ 2 - 0
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c

@@ -2779,7 +2779,9 @@ static void ixgbevf_reset_subtask(struct ixgbevf_adapter *adapter)
 
 	adapter->tx_timeout_count++;
 
+	rtnl_lock();
 	ixgbevf_reinit_locked(adapter);
+	rtnl_unlock();
 }
 
 /**