aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bnx2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/bnx2.c')
-rw-r--r--drivers/net/bnx2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/bnx2.c b/drivers/net/bnx2.c
index 33d69ddc90a3..d4a3dac21dcf 100644
--- a/drivers/net/bnx2.c
+++ b/drivers/net/bnx2.c
@@ -547,9 +547,9 @@ bnx2_free_rx_mem(struct bnx2 *bp)
547 for (j = 0; j < bp->rx_max_pg_ring; j++) { 547 for (j = 0; j < bp->rx_max_pg_ring; j++) {
548 if (rxr->rx_pg_desc_ring[j]) 548 if (rxr->rx_pg_desc_ring[j])
549 pci_free_consistent(bp->pdev, RXBD_RING_SIZE, 549 pci_free_consistent(bp->pdev, RXBD_RING_SIZE,
550 rxr->rx_pg_desc_ring[i], 550 rxr->rx_pg_desc_ring[j],
551 rxr->rx_pg_desc_mapping[i]); 551 rxr->rx_pg_desc_mapping[j]);
552 rxr->rx_pg_desc_ring[i] = NULL; 552 rxr->rx_pg_desc_ring[j] = NULL;
553 } 553 }
554 if (rxr->rx_pg_ring) 554 if (rxr->rx_pg_ring)
555 vfree(rxr->rx_pg_ring); 555 vfree(rxr->rx_pg_ring);