summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ixgbe
diff options
context:
space:
mode:
authorMark Rustad <mark.d.rustad@intel.com>2016-09-29 00:36:38 +0200
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2016-11-05 01:16:50 +0100
commit1fa71252778d6fe151438b009416e4ce7bc1c802 (patch)
tree265168d434c6ad91ed01d1e5704ef36fb1b248e1 /drivers/net/ethernet/intel/ixgbe
parentixgbe: Add X553 PHY FC autoneg support (diff)
downloadlinux-1fa71252778d6fe151438b009416e4ce7bc1c802.tar.xz
linux-1fa71252778d6fe151438b009416e4ce7bc1c802.zip
ixgbe: Handle previously-freed msix_entries
The msix_entries memory can be freed by a previous suspend or remove, so don't crash on close when it isn't there. Signed-off-by: Mark Rustad <mark.d.rustad@intel.com> Tested-by: Krishneil Singh <krishneil.k.singh@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ixgbe')
-rw-r--r--drivers/net/ethernet/intel/ixgbe/ixgbe_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
index 5e1f57c7ee1b..de634f0c2e6d 100644
--- a/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
+++ b/drivers/net/ethernet/intel/ixgbe/ixgbe_main.c
@@ -3070,6 +3070,9 @@ static void ixgbe_free_irq(struct ixgbe_adapter *adapter)
return;
}
+ if (!adapter->msix_entries)
+ return;
+
for (vector = 0; vector < adapter->num_q_vectors; vector++) {
struct ixgbe_q_vector *q_vector = adapter->q_vector[vector];
struct msix_entry *entry = &adapter->msix_entries[vector];