Re: [PATCH 5.10] net: cpsw_new: Fix potential unregister of netdev that has not been registered yet
From: Sasha Levin <sashal@kernel.org>
Date: 2026-07-02 00:38:49
Also in:
linux-omap, lkml, stable
From: Sasha Levin <sashal@kernel.org>
Date: 2026-07-02 00:38:49
Also in:
linux-omap, lkml, stable
If an error occurs during register_netdev() for the first MAC in cpsw_register_ports(), even though cpsw->slaves[0].ndev is set to NULL, cpsw->slaves[1].ndev would remain unchanged. This could later cause cpsw_unregister_ports() to attempt unregistering the second MAC.
Queued for 5.10.y, thanks. -- Thanks, Sasha