Re: [PATCH 2/4][TG3]: Fix race condition when calling register_netdev().

2006-12-17 Thread David Miller
From: Michael Chan [EMAIL PROTECTED] Date: Fri, 15 Dec 2006 22:48:43 -0800 [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(),

[PATCH 2/4][TG3]: Fix race condition when calling register_netdev().

2006-12-15 Thread Michael Chan
[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.