gianfar: Call netif_carrier_off() prior to registration
authorFabio Estevam <fabio.estevam@freescale.com>
Tue, 3 Jun 2014 22:55:38 +0000 (19:55 -0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Jun 2014 22:03:46 +0000 (15:03 -0700)
Quoting David Miller:
"At the moment you call register_netdev() the device is visible, notifications
are sent to userspace, and userland tools can try to bring the interface up
and see the incorrect link state, before you do the netif_carrier_off().

Said another way, between the register_netdev() and netif_carrier_off() call,
userspace can see the device in an inconsistent state."

So call netif_carrier_off() prior to register_netdev().

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found