diff options
author | Heiner Kallweit <hkallweit1@gmail.com> | 2020-06-17 23:53:21 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-06-19 06:38:36 +0300 |
commit | 7190aeece918cad9b601789bee58877a6c2eeed8 (patch) | |
tree | f205bf0f3d365972e7b49fa7c8ca3c24dd8ebe2d /drivers/net/ethernet/realtek/r8169_main.c | |
parent | e9882208ae989116b6ea166ef743111ea4a5248f (diff) | |
download | linux-7190aeece918cad9b601789bee58877a6c2eeed8.tar.xz |
r8169: replace synchronize_rcu with synchronize_net
rtl8169_hw_reset() may be called under RTNL lock, therefore switch to
synchronize_net().
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/r8169_main.c')
-rw-r--r-- | drivers/net/ethernet/realtek/r8169_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index bd95c0ae6536..0d3e58ae1b31 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -3929,7 +3929,7 @@ static void rtl8169_tx_clear(struct rtl8169_private *tp) static void rtl8169_hw_reset(struct rtl8169_private *tp, bool going_down) { /* Give a racing hard_start_xmit a few cycles to complete. */ - synchronize_rcu(); + synchronize_net(); /* Disable interrupts */ rtl8169_irq_mask_and_ack(tp); |