diff options
author | Yevgeny Petrilin <yevgenyp@mellanox.co.il> | 2010-08-23 23:45:05 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-08-24 17:54:47 -0400 |
commit | 69351a2933428515b31fe54100f90a669cbbd384 (patch) | |
tree | 432cb6f34764bf9f2b9470553ff1236c46a49775 /drivers/net/mlx4/en_rx.c | |
parent | c2e3143e3c46ede22336316b3ff4746727c0d93a (diff) |
mlx4_en: Fixed incorrect unmapping on RX flow.
When allocating new fragments to replace the ones that would be passed to the stack,
The fragments that should be replaced, are the ones that were already used.
Signed-off-by: Yevgeny Petrilin <yevgenyp@mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/mlx4/en_rx.c')
-rw-r--r-- | drivers/net/mlx4/en_rx.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mlx4/en_rx.c b/drivers/net/mlx4/en_rx.c index 2add04025fd0..4335c58160d7 100644 --- a/drivers/net/mlx4/en_rx.c +++ b/drivers/net/mlx4/en_rx.c | |||
@@ -459,7 +459,7 @@ static int mlx4_en_complete_rx_desc(struct mlx4_en_priv *priv, | |||
459 | goto fail; | 459 | goto fail; |
460 | 460 | ||
461 | /* Unmap buffer */ | 461 | /* Unmap buffer */ |
462 | pci_unmap_single(mdev->pdev, dma, skb_frags[nr].size, | 462 | pci_unmap_single(mdev->pdev, dma, skb_frags_rx[nr].size, |
463 | PCI_DMA_FROMDEVICE); | 463 | PCI_DMA_FROMDEVICE); |
464 | } | 464 | } |
465 | /* Adjust size of last fragment to match actual length */ | 465 | /* Adjust size of last fragment to match actual length */ |