linux/drivers/net/ethernet/qualcomm/emac
Timur Tabi a93ad944f4 net: qcom/emac: specify the correct size when mapping a DMA buffer
When mapping the RX DMA buffers, the driver was accidentally specifying
zero for the buffer length.  Under normal circumstances, SWIOTLB does not
need to allocate a bounce buffer, so the address is just mapped without
checking the size field.  This is why the error was not detected earlier.

Fixes: b9b17debc6 ("net: emac: emac gigabit ethernet controller driver")
Cc: stable@vger.kernel.org
Signed-off-by: Timur Tabi <timur@codeaurora.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
2017-09-25 16:34:29 -07:00
..
Makefile net: qcom/emac: add ethtool support 2017-01-10 13:26:25 -05:00
emac-ethtool.c net: qcom/emac: add software control for pause frame mode 2017-09-21 15:19:30 -07:00
emac-mac.c net: qcom/emac: specify the correct size when mapping a DMA buffer 2017-09-25 16:34:29 -07:00
emac-mac.h net: qcom/emac: do not call emac_mac_start twice 2017-01-29 19:07:02 -05:00
emac-phy.c net: qcom/emac: do not use hardware mdio automatic polling 2017-06-04 19:32:09 -04:00
emac-phy.h net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-fsm9900.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii-qdf2400.c net: qcom/emac: optimize QDF2400 SGMII RX/TX impedence values 2017-03-07 12:29:37 -08:00
emac-sgmii-qdf2432.c net: qcom/emac: rename emac_phy to emac_sgmii and move it 2017-01-23 12:54:35 -05:00
emac-sgmii.c net: qcom/emac: add support for emulation systems 2017-06-25 11:44:29 -04:00
emac-sgmii.h net: qcom/emac: add an error interrupt handler for the sgmii 2017-01-29 19:07:02 -05:00
emac.c net: qcom/emac: add software control for pause frame mode 2017-09-21 15:19:30 -07:00
emac.h net: qcom/emac: add software control for pause frame mode 2017-09-21 15:19:30 -07:00