]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb806e0fe4cfac5cc5e8371b166559981e338724c
tree4e2c42fc779979a9362b8ab5fb9e8a5322df48c3
parentbffe987d4250468d71bb4858fa623120a636f7cf
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