linux_dsm_epyc7002/drivers/net/ethernet/marvell
Marcin Wojtas 26c17a179f net: mvneta: fix error path for building skb
In the actual RX processing, there is same error path for both descriptor
ring refilling and building skb fails. This is not correct, because after
successful refill, the ring is already updated with newly allocated
buffer. Then, in case of build_skb() fail, hitherto code left the original
buffer unmapped.

This patch fixes above situation by swapping error check of skb build with
DMA-unmap of original buffer.

Signed-off-by: Marcin Wojtas <mw@semihalf.com>
Acked-by: Simon Guinot <simon.guinot@sequanux.org>
Cc: <stable@vger.kernel.org> # v4.2+
Fixes a84e328941 ("net: mvneta: fix refilling for Rx DMA buffers")
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-12-02 23:35:05 -05:00
..
Kconfig mvneta: add FIXED_PHY dependency 2015-11-09 11:35:03 -05:00
Makefile
mv643xx_eth.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2015-11-01 00:15:30 -04:00
mvmdio.c
mvneta.c net: mvneta: fix error path for building skb 2015-12-02 23:35:05 -05:00
mvpp2.c net: mvpp2: replace TX coalescing interrupts with hrtimer 2015-08-10 10:57:00 -07:00
pxa168_eth.c pxa168: fix double deallocation of managed resources 2015-04-26 16:05:49 -04:00
skge.c
skge.h
sky2.c RESEND: [PATCH v3 net-next] sky2: use random address if EEPROM is bad 2015-09-29 15:00:04 -07:00
sky2.h