Staging
v0.8.1
https://github.com/torvalds/linux
Revision 8c4799ac799665065f9bf1364fd71bf4f7dc6a4a authored by Florian Fainelli on 01 December 2016, 17:45:45 UTC, committed by David S. Miller on 02 December 2016, 18:53:34 UTC
__bcmgenet_tx_reclaim() and bcmgenet_free_rx_buffers() are not using the
same struct device during unmap that was used for the map operation,
which makes DMA-API debugging warn about it. Fix this by always using
&priv->pdev->dev throughout the driver, using an identical device
reference for all map/unmap calls.

Fixes: 1c1008c793fa ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9bd813d
History
Tip revision: 8c4799ac799665065f9bf1364fd71bf4f7dc6a4a authored by Florian Fainelli on 01 December 2016, 17:45:45 UTC
net: bcmgenet: Utilize correct struct device for all DMA operations
Tip revision: 8c4799a

back to top