Re: [syzbot] Re: [syzbot] [net?] possible deadlock in team_device_event (3)

syzbot
2024-07-30T12:02:31Z

drivers/net/team/team_core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/team/team_core.c b/drivers/net/team/team_core.c
index ab1935a4aa2c..056889eff6b1 100644
--- a/drivers/net/team/team_core.c
+++ b/drivers/net/team/team_core.c
@@ -2947,7 +2947,7 @@ static void team_port_change_check(struct team_port *port, bool linkup)
{
struct team *team = port->team;

- mutex_lock(&team->lock);
+ mutex_lock_nested(&team->lock, 1);
__team_port_change_check(port, linkup);
mutex_unlock(&team->lock);
}
--