From: Fabio Estevam Date: Tue, 3 Jun 2014 22:55:38 +0000 (-0300) Subject: gianfar: Call netif_carrier_off() prior to registration X-Git-Tag: omap-for-v3.16/fixes-against-rc1~36^2~58^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4c642ea1239f0c5c1d794a5b788319d3373c58c;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed