summaryrefslogtreecommitdiff
path: root/include/linux/flex_array.h
diff options
context:
space:
mode:
authorFlorian Fainelli <f.fainelli@gmail.com>2016-12-01 09:45:45 -0800
committerBen Hutchings <ben@decadent.org.uk>2017-02-23 03:54:42 +0000
commita0579d7ed8475d1c20a1da4aaf1416f35cc91859 (patch)
treeaccfcb81521521100f3527d97f7bab82358b5c20 /include/linux/flex_array.h
parent770e91712ca6bc5bc00470772e34466e09e652e7 (diff)
net: bcmgenet: Utilize correct struct device for all DMA operations
commit 8c4799ac799665065f9bf1364fd71bf4f7dc6a4a upstream. __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> [bwh: Backported to 3.16: - Adjust context - Also fix call from bcmgenet_desc_rx(), fixed upstream in commit d6707bec5986 "net: bcmgenet: rewrite bcmgenet_rx_refill()"] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions