]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: Do not fire linkwatch events until the device is registered.
authorDavid S. Miller <davem@davemloft.net>
Wed, 19 Nov 2008 23:33:54 +0000 (15:33 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Nov 2008 23:33:54 +0000 (15:33 -0800)
commitb47300168e770b60ab96c8924854c3b0eb4260eb
tree8dcdf57ff27c503cf365ae5a98cf30626612b381
parent566521d63720ab47576afb85147e5652993bf1e6
net: Do not fire linkwatch events until the device is registered.

Several device drivers try to do things like netif_carrier_off()
before register_netdev() is invoked.  This is bogus, but too many
drivers do this to fix them all up in one go.

Reported-by: Folkert van Heusden <folkert@vanheusden.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c