commit | 1b2f922f6869eb13dadfe1ba3f8337bd42e50a2e | [log] [tgz] |
---|---|---|
author | Michael Chan <mchan@broadcom.com> | Thu May 03 13:20:19 2007 -0700 |
committer | David S. Miller <davem@davemloft.net> | Thu May 03 13:20:19 2007 -0700 |
tree | ab6f02ff18a01b80501aa7b0dda70be64fb2e0e5 | |
parent | 40453c839fdbf86738256cae1c9c1ebe55645d4a [diff] |
[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 <mchan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>