1
0
mirror of git://projects.qi-hardware.com/openwrt-xburst.git synced 2024-07-02 19:02:20 +03:00

[mcs814x] nuport-mac: unmap the DMA buffer when closing device

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33068 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
florian 2012-08-08 21:51:09 +00:00
parent 403b1f1906
commit fe5c16eebf

View File

@ -688,6 +688,10 @@ static void nuport_mac_free_rx_ring(struct nuport_mac_priv *priv)
dev_kfree_skb(priv->rx_skb[i]);
priv->rx_skb[i] = NULL;
}
if (priv->rx_addr)
dma_unmap_single(&priv->pdev->dev, priv->rx_addr, RX_ALLOC_SIZE,
DMA_TO_DEVICE);
}
static void nuport_mac_read_mac_address(struct net_device *dev)