]> git.karo-electronics.de Git - karo-tx-linux.git/commit
bnx2x: Calling netif_carrier_off at the end of the probe
authorEilon Greenstein <eilong@broadcom.com>
Tue, 4 Nov 2008 00:46:40 +0000 (16:46 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 20 Nov 2008 22:54:43 +0000 (14:54 -0800)
commitc4ae2887fba8c33d67feaf00726474eda04d5dd6
treeee2074933dd5067ebd984a6f860313bc530c8c2a
parentb905e4eea3b6ee9d273262a999b8736929f5002d
bnx2x: Calling netif_carrier_off at the end of the probe

commit 12b56ea89e70d4b04f2f5199750310e82894ebbd upstream.

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>
Cc: Alex Chiang <achiang@hp.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/bnx2x_main.c