From: Michael Chan Date: Mon, 18 Dec 2006 01:07:29 +0000 (-0800) Subject: [TG3]: Fix race condition when calling register_netdev(). X-Git-Tag: v2.6.20-rc2~96 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c49a1561ee4b663d2819b5bea3e4684eae217b19;p=pandora-kernel.git [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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed