diff options
author | Lennert Buytenhek <buytenh@wantstofly.org> | 2008-08-24 07:19:48 +0200 |
---|---|---|
committer | Lennert Buytenhek <buytenh@marvell.com> | 2008-09-05 06:33:57 +0200 |
commit | 3a499481c167977368a7e7cae8ea1ff2a99518a0 (patch) | |
tree | a4aa88c685c32819b5c5e15c110e1a77934fc0d7 /drivers/net/mv643xx_eth.c | |
parent | b98738412372d6bcba1548b6b439f49023e25a34 (diff) | |
download | op-kernel-dev-3a499481c167977368a7e7cae8ea1ff2a99518a0.zip op-kernel-dev-3a499481c167977368a7e7cae8ea1ff2a99518a0.tar.gz |
mv643xx_eth: fix receive buffer DMA unmapping
When tearing down a DMA mapping for a receive buffer, we should pass
dma_unmap_single() the exact same address that dma_map_single() gave
us when we originally set up the mapping.
Signed-off-by: Lennert Buytenhek <buytenh@marvell.com>
Diffstat (limited to 'drivers/net/mv643xx_eth.c')
-rw-r--r-- | drivers/net/mv643xx_eth.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/mv643xx_eth.c b/drivers/net/mv643xx_eth.c index deee66d..ad2ae93 100644 --- a/drivers/net/mv643xx_eth.c +++ b/drivers/net/mv643xx_eth.c @@ -559,7 +559,7 @@ static int rxq_process(struct rx_queue *rxq, int budget) spin_unlock_irqrestore(&mp->lock, flags); - dma_unmap_single(NULL, rx_desc->buf_ptr + 2, + dma_unmap_single(NULL, rx_desc->buf_ptr, rx_desc->buf_size, DMA_FROM_DEVICE); rxq->rx_desc_count--; rx++; |