Files
android_kernel_xiaomi_sm8450/drivers/net/ethernet
Fabio Estevam d4c642ea12 gianfar: Call netif_carrier_off() prior to registration
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>
2014-06-05 15:03:46 -07:00
..
2014-04-27 19:46:17 -04:00
2014-06-03 19:28:42 -07:00
2014-05-14 15:11:22 -04:00
2013-11-07 02:14:32 -05:00
2014-06-02 17:02:28 -07:00