From: Michael Chan Date: Thu, 3 May 2007 20:20:19 +0000 (-0700) Subject: [BNX2]: Fix race conditions when calling register_netdev(). X-Git-Tag: v2.6.22-rc1~1036^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b2f922f6869eb13dadfe1ba3f8337bd42e50a2e;p=pandora-kernel.git [BNX2]: Fix race conditions when calling register_netdev(). Hot-plug scripts can call bnx2_open() as soon as register_netdev() is called in bnx2_init_one(). We need to call pci_set_drvdata() and setup everything before calling register_netdev(). netif_carrier_off() also needs to be moved to bnx2_open() to avoid race conditions with the irq. Signed-off-by: Michael Chan Signed-off-by: David S. Miller --- Reading git-diff-tree failed