Files
linux/drivers
Timur Tabi 852bdea5e3 net: qcom/emac: specify the correct size when mapping a DMA buffer
[ Upstream commit a93ad944f4 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-10-12 11:51:22 +02:00
..
2016-12-05 14:53:46 -05:00
2017-10-05 09:44:00 +02:00
2017-09-09 17:39:41 +02:00
2016-09-20 20:57:12 +10:00
2017-04-21 09:31:24 +02:00