|
@@ -543,9 +543,9 @@ bnx2_free_rx_mem(struct bnx2 *bp)
|
|
|
for (j = 0; j < bp->rx_max_pg_ring; j++) {
|
|
|
if (rxr->rx_pg_desc_ring[j])
|
|
|
pci_free_consistent(bp->pdev, RXBD_RING_SIZE,
|
|
|
- rxr->rx_pg_desc_ring[i],
|
|
|
- rxr->rx_pg_desc_mapping[i]);
|
|
|
- rxr->rx_pg_desc_ring[i] = NULL;
|
|
|
+ rxr->rx_pg_desc_ring[j],
|
|
|
+ rxr->rx_pg_desc_mapping[j]);
|
|
|
+ rxr->rx_pg_desc_ring[j] = NULL;
|
|
|
}
|
|
|
if (rxr->rx_pg_ring)
|
|
|
vfree(rxr->rx_pg_ring);
|