]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 11:50:13 +0000 (12:50 +0100)
commitdf3398504b975cfe82fcd082269f469b44f854b9
treefdb393fba94302e8b76402fcd911ab49a9a3241c
parent3ce32a9fb1d210f1e8384ebbfc336b64d3c131bd
net: sh_eth: Fix missing rtnl lock in suspend/resume path

[ Upstream commit b95102215a8d0987789715ce11c0d4ec031cbfbe ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/renesas/sh_eth.c