[lvc-project] [PATCH 5.10] net: cpsw_new: Fix potential unregister of netdev that has not been registered yet
Sasha Levin
sashal at kernel.org
Thu Jul 2 03:38:31 MSK 2026
> 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
More information about the lvc-project
mailing list