mirror of
https://github.com/torvalds/linux.git
synced 2024-12-12 06:02:38 +00:00
rocker: NULL port if port probe fails
Set port to NULL if port probe fails so we don't try to remove partially initialized port on port probe err cleanup path. Signed-off-by: Scott Feldman <sfeldma@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9dc20a6496
commit
6c4f7780a5
@ -5008,6 +5008,7 @@ err_untagged_vlan:
|
||||
rocker_port_ig_tbl(rocker_port, SWITCHDEV_TRANS_NONE,
|
||||
ROCKER_OP_FLAG_REMOVE);
|
||||
err_port_ig_tbl:
|
||||
rocker->ports[port_number] = NULL;
|
||||
unregister_netdev(dev);
|
||||
err_register_netdev:
|
||||
free_netdev(dev);
|
||||
|
Loading…
Reference in New Issue
Block a user