Home
last modified time | relevance | path

Searched hist:a93ad944f4ff9a797abff17c73fc4b1e4a1d9141 (Results 1 – 1 of 1) sorted by relevance

/linux/drivers/net/ethernet/qualcomm/emac/
H A Demac-mac.ca93ad944f4ff9a797abff17c73fc4b1e4a1d9141 Fri Sep 22 20:32:44 UTC 2017 Timur Tabi <timur@codeaurora.org> 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: b9b17debc69d ("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>