]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commit3c95e5013b7f204a03757691367857b7b668163a
treec98c94dd3228237c755a41dff3f6a8c806760c58
parent72991b560681ef5c7cb5674f5daa9d8164168785
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