diff options
Diffstat (limited to 'drivers/net/igb')
-rw-r--r-- | drivers/net/igb/igb_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index be02045a5078..10b095d69b43 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c | |||
@@ -420,6 +420,9 @@ static void igb_free_queues(struct igb_adapter *adapter) | |||
420 | for (i = 0; i < adapter->num_rx_queues; i++) | 420 | for (i = 0; i < adapter->num_rx_queues; i++) |
421 | netif_napi_del(&adapter->rx_ring[i].napi); | 421 | netif_napi_del(&adapter->rx_ring[i].napi); |
422 | 422 | ||
423 | adapter->num_rx_queues = 0; | ||
424 | adapter->num_tx_queues = 0; | ||
425 | |||
423 | kfree(adapter->tx_ring); | 426 | kfree(adapter->tx_ring); |
424 | kfree(adapter->rx_ring); | 427 | kfree(adapter->rx_ring); |
425 | } | 428 | } |