summaryrefslogtreecommitdiff
path: root/drivers/net/loopback.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@freescale.com>2014-06-03 22:55:38 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-06-05 22:03:46 (GMT)
commitd4c642ea1239f0c5c1d794a5b788319d3373c58c (patch)
treefefa5990e0a8cdfa5ce21b997297805fc6b68592 /drivers/net/loopback.c
parent3bfdc59a6c24608ed23e903f670aaf5f58c7a6f3 (diff)
downloadlinux-d4c642ea1239f0c5c1d794a5b788319d3373c58c.tar.xz
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>
Diffstat (limited to 'drivers/net/loopback.c')
0 files changed, 0 insertions, 0 deletions