mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-03 07:38:10 +00:00
net: eth: altera: Fix the initial device operstate
Call netif_carrier_off() prior to register_netdev(), otherwise userspace can see incorrect link state. Signed-off-by: Atsushi Nemoto <nemoto@toshiba-tops.co.jp> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7845989cb4
commit
d43cefcd68
1 changed files with 1 additions and 0 deletions
|
@ -1517,6 +1517,7 @@ static int altera_tse_probe(struct platform_device *pdev)
|
|||
spin_lock_init(&priv->tx_lock);
|
||||
spin_lock_init(&priv->rxdma_irq_lock);
|
||||
|
||||
netif_carrier_off(ndev);
|
||||
ret = register_netdev(ndev);
|
||||
if (ret) {
|
||||
dev_err(&pdev->dev, "failed to register TSE net device\n");
|
||||
|
|
Loading…
Reference in a new issue