diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2016-12-01 09:45:45 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-12-10 19:07:24 +0100 |
commit | c36a2a14f26dd3ed95ce75ba69fb7435d7da9bf0 (patch) | |
tree | 6a49c47a5c8d3acb63145974e6487eff9666e46f /drivers/net/usb/huawei_cdc_ncm.c | |
parent | 5a01eaf19858278cc22525be118fe9c6a3c86e83 (diff) |
net: bcmgenet: Utilize correct struct device for all DMA operations
[ Upstream commit 8c4799ac799665065f9bf1364fd71bf4f7dc6a4a ]
__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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/usb/huawei_cdc_ncm.c')
0 files changed, 0 insertions, 0 deletions