mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-22 14:41:27 +00:00
net: fec: restore dev_id in the cases of probe error
The static variable dev_id always plus one before netdev registerred. It should restore the dev_id value in the cases of probe error. Signed-off-by: Fugang Duan <fugang.duan@nxp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
f1c8d3720f
commit
e90f686b43
1 changed files with 1 additions and 0 deletions
|
@ -3556,6 +3556,7 @@ failed_phy:
|
|||
of_node_put(phy_node);
|
||||
failed_ioremap:
|
||||
free_netdev(ndev);
|
||||
dev_id--;
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue