diff options
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ixgb/ixgb_main.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index c6259c7127f6..8424a8e4cbb0 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -3602,7 +3602,7 @@ e1000_update_stats(struct e1000_adapter *adapter) | |||
3602 | */ | 3602 | */ |
3603 | if (adapter->link_speed == 0) | 3603 | if (adapter->link_speed == 0) |
3604 | return; | 3604 | return; |
3605 | if (pdev->error_state && pdev->error_state != pci_channel_io_normal) | 3605 | if (pci_channel_offline(pdev)) |
3606 | return; | 3606 | return; |
3607 | 3607 | ||
3608 | spin_lock_irqsave(&adapter->stats_lock, flags); | 3608 | spin_lock_irqsave(&adapter->stats_lock, flags); |
diff --git a/drivers/net/ixgb/ixgb_main.c b/drivers/net/ixgb/ixgb_main.c index a083a9189230..f2742179f120 100644 --- a/drivers/net/ixgb/ixgb_main.c +++ b/drivers/net/ixgb/ixgb_main.c | |||
@@ -1609,7 +1609,7 @@ ixgb_update_stats(struct ixgb_adapter *adapter) | |||
1609 | struct pci_dev *pdev = adapter->pdev; | 1609 | struct pci_dev *pdev = adapter->pdev; |
1610 | 1610 | ||
1611 | /* Prevent stats update while adapter is being reset */ | 1611 | /* Prevent stats update while adapter is being reset */ |
1612 | if (pdev->error_state && pdev->error_state != pci_channel_io_normal) | 1612 | if (pci_channel_offline(pdev)) |
1613 | return; | 1613 | return; |
1614 | 1614 | ||
1615 | if((netdev->flags & IFF_PROMISC) || (netdev->flags & IFF_ALLMULTI) || | 1615 | if((netdev->flags & IFF_PROMISC) || (netdev->flags & IFF_ALLMULTI) || |