r8169: use RTNL to protect critical sections
authorHeiner Kallweit <hkallweit1@gmail.com>
Sat, 20 Jun 2020 20:38:24 +0000 (22:38 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Jun 2020 23:26:02 +0000 (16:26 -0700)
commitabe5fc42f9ce942c96d50bf6b44886b70d5759ec
tree4e2c42fc779979a9362b8ab5fb9e8a5322df48c3
parent567ca57faa6266da931679fd4c4eb9863855f804
r8169: use RTNL to protect critical sections

Most relevant ops (open, close, ethtool ops) are protected with RTNL
lock by net core. Make sure that such ops can't be interrupted by
e.g. (runtime-)suspending by taking the RTNL lock in suspend ops
and the PCI error handler.

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