]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: sh_eth: Fix missing rtnl lock in suspend/resume path
authorKory Maincent <kory.maincent@bootlin.com>
Wed, 29 Jan 2025 09:50:47 +0000 (10:50 +0100)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 30 Jan 2025 10:23:01 +0000 (11:23 +0100)
commitb95102215a8d0987789715ce11c0d4ec031cbfbe
tree5d7596b980c6c75a37c45f56f22102f14c799cf6
parent2c2ebb2b49573e5f8726112ad06b1dffc3c9ea03
net: sh_eth: Fix missing rtnl lock in suspend/resume path

Fix the suspend/resume path by ensuring the rtnl lock is held where
required. Calls to sh_eth_close, sh_eth_open and wol operations must be
performed under the rtnl lock to prevent conflicts with ongoing ndo
operations.

Fixes: b71af04676e9 ("sh_eth: add more PM methods")
Tested-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Reviewed-by: Sergey Shtylyov <s.shtylyov@omp.ru>
Signed-off-by: Kory Maincent <kory.maincent@bootlin.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/renesas/sh_eth.c