mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 16:58:53 +00:00
[PATCH] mv643xx_eth: iounmap the correct SRAM buffer
Signed-off-by: Dale Farnsworth <dale@farnsworth.org> mv643xx_eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
This commit is contained in:
parent
f7ea333765
commit
dd09b1de08
@ -877,7 +877,7 @@ static int mv643xx_eth_real_open(struct net_device *dev)
|
|||||||
printk(KERN_ERR "%s: Freeing previously allocated TX queues...",
|
printk(KERN_ERR "%s: Freeing previously allocated TX queues...",
|
||||||
dev->name);
|
dev->name);
|
||||||
if (mp->rx_sram_size)
|
if (mp->rx_sram_size)
|
||||||
iounmap(mp->p_rx_desc_area);
|
iounmap(mp->p_tx_desc_area);
|
||||||
else
|
else
|
||||||
dma_free_coherent(NULL, mp->tx_desc_area_size,
|
dma_free_coherent(NULL, mp->tx_desc_area_size,
|
||||||
mp->p_tx_desc_area, mp->tx_desc_dma);
|
mp->p_tx_desc_area, mp->tx_desc_dma);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user