Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net: qcom/emac: specify the correct size when mapping a DMA buffer
[ Upstream commit a93ad94 ] 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: b9b17de ("net: emac: emac gigabit ethernet controller driver") Cc: [email protected] Signed-off-by: Timur Tabi <[email protected]> Signed-off-by: David S. Miller <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information