aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMichael Chan <mchan@broadcom.com>2006-12-17 17:07:29 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2006-12-17 21:59:20 -0800
commitc49a1561ee4b663d2819b5bea3e4684eae217b19 (patch)
tree59909de4a5cba3bb84ee4b09fd793af46efc0f4f /drivers/net/tg3.h
parent[TG3]: Assign tp->link_config.orig_* values. (diff)
downloadlinux-dev-c49a1561ee4b663d2819b5bea3e4684eae217b19.tar.xz
linux-dev-c49a1561ee4b663d2819b5bea3e4684eae217b19.zip
[TG3]: Fix race condition when calling register_netdev().
Hot-plug scripts can call tg3_open() as soon as register_netdev() is called in tg3_init_one(). We need to call pci_set_drvdata() before register_netdev(), and netif_carrier_off() needs to be moved to tg3_open() to avoid race conditions. Signed-off-by: Michael Chan <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
0 files changed, 0 insertions, 0 deletions