ixgbe: fix crash when injecting AER after failed reset
In case where AER recovery fails the device is left in a down state. Consecutive AER error injection can lead to a double IRQ free. Signed-off-by: Emil Tantilov <emil.s.tantilov@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
This commit is contained in:
parent
b4ded8327f
commit
b64666ae00
@ -10861,6 +10861,9 @@ static pci_ers_result_t ixgbe_io_error_detected(struct pci_dev *pdev,
|
||||
if (!test_bit(__IXGBE_SERVICE_INITED, &adapter->state))
|
||||
return PCI_ERS_RESULT_DISCONNECT;
|
||||
|
||||
if (!netif_device_present(netdev))
|
||||
return PCI_ERS_RESULT_DISCONNECT;
|
||||
|
||||
rtnl_lock();
|
||||
netif_device_detach(netdev);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user