]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: improve DMA handling in rtl_rx
authorHeiner Kallweit <hkallweit1@gmail.com>
Mon, 26 Aug 2019 20:52:36 +0000 (22:52 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Aug 2019 21:33:28 +0000 (14:33 -0700)
commit78a5bf782e6efaa926200529848ad8d7fe4b11da
treec98c94dd3228237c755a41dff3f6a8c806760c58
parent5936acdd3ed18d0c002e70d05adab497aac749f0
r8169: improve DMA handling in rtl_rx

Move the call to dma_sync_single_for_cpu after calling napi_alloc_skb.
This avoids calling dma_sync_single_for_cpu w/o handing control back
to device if the memory allocation should fail.

Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169_main.c