bnx2x: Calling netif_carrier_off at the end of the probe

netif_carrier_off was called too early at the probe. In case of failure
or simply bad timing, this can cause a fatal error since linkwatch_event
might run too soon.

Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by Eilon Greenstein and committed by David S. Miller 12b56ea8 7d96567a

+2 -2
+2 -2
drivers/net/bnx2x_main.c
··· 10206 10206 return -ENOMEM; 10207 10207 } 10208 10208 10209 - netif_carrier_off(dev); 10210 - 10211 10209 bp = netdev_priv(dev); 10212 10210 bp->msglevel = debug; 10213 10211 ··· 10228 10230 unregister_netdev(dev); 10229 10231 goto init_one_exit; 10230 10232 } 10233 + 10234 + netif_carrier_off(dev); 10231 10235 10232 10236 bp->common.name = board_info[ent->driver_data].name; 10233 10237 printk(KERN_INFO "%s: %s (%c%d) PCI-E x%d %s found at mem %lx,"