diff options
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ixgbe/ixgbe_main.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ixgbe/ixgbe_main.c b/drivers/net/ixgbe/ixgbe_main.c index f0d0c5aad2b4..588661ba2b9b 100644 --- a/drivers/net/ixgbe/ixgbe_main.c +++ b/drivers/net/ixgbe/ixgbe_main.c | |||
@@ -2597,6 +2597,11 @@ static void ixgbe_free_irq(struct ixgbe_adapter *adapter) | |||
2597 | 2597 | ||
2598 | i--; | 2598 | i--; |
2599 | for (; i >= 0; i--) { | 2599 | for (; i >= 0; i--) { |
2600 | /* free only the irqs that were actually requested */ | ||
2601 | if (!adapter->q_vector[i]->rxr_count && | ||
2602 | !adapter->q_vector[i]->txr_count) | ||
2603 | continue; | ||
2604 | |||
2600 | free_irq(adapter->msix_entries[i].vector, | 2605 | free_irq(adapter->msix_entries[i].vector, |
2601 | adapter->q_vector[i]); | 2606 | adapter->q_vector[i]); |
2602 | } | 2607 | } |