bnx2x: handle CHIP_REVISION during init_one
authorAriel Elior <ariele@broadcom.com>
Mon, 23 Jan 2012 07:31:55 +0000 (07:31 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Jan 2012 18:58:18 +0000 (13:58 -0500)
commit65087cfee50595185f6bbf3d78272eeb34186d2b
tree544dadaea0da0e94a6a2da32e190f054ff1a5917
parent1fdf155158886514c82e5401ab7b1264beb375bf
bnx2x: handle CHIP_REVISION during init_one

The macro `CHIP_IS_E1x' requires `bp' to be initialized.
As `bp' is not yet initialized during this phase of `bnx2x_init_dev',
it accessed uninitialized fields in the struct.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c