2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-01 10:13:58 +08:00
linux-next/drivers/net/ethernet/renesas
Ben Hutchings eebfb643c0 sh_eth: Fix padding of short frames on TX
If an skb to be transmitted is shorter than the minimum Ethernet frame
length, we currently set the DMA descriptor length to the minimum but
do not add zero-padding.  This could result in leaking sensitive
data.  We also pass different lengths to dma_map_single() and
dma_unmap_single().

Use skb_padto() to pad properly, before calling dma_map_single().

Signed-off-by: Ben Hutchings <ben.hutchings@codethink.co.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-01-26 16:13:15 -08:00
..
Kconfig net: sh_eth: fix driver dependencies 2014-09-02 13:23:25 -07:00
Makefile
sh_eth.c sh_eth: Fix padding of short frames on TX 2015-01-26 16:13:15 -08:00
sh_eth.h sh_eth: Fix access to TRSCER register 2015-01-08 20:06:54 -08:00