diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index be02045a5078b70972b3bba5f7ccc59d346a7657..10b095d69b435b2c33702f5c998c1b11cfbf952f 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) for (i = 0; i < adapter->num_rx_queues; i++) netif_napi_del(&adapter->rx_ring[i].napi); + adapter->num_rx_queues = 0; + adapter->num_tx_queues = 0; + kfree(adapter->tx_ring); kfree(adapter->rx_ring); }