]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: handle CHIP_REVISION during init_one
authorAriel Elior <ariele@broadcom.com>
Mon, 23 Jan 2012 07:31:55 +0000 (07:31 +0000)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:17 +0000 (22:41 +0800)
commit2028c215cd8abf57f02c3986497c7c844653116a
tree00277f97689ec83d463e46f79f5cd56a48526cab
parentf67650d2e7d0d68d1e37f8a3194c6bdf3ce172bb
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.

(cherry picked from commit 65087cfee50595185f6bbf3d78272eeb34186d2b)
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>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
drivers/net/bnx2x/bnx2x_main.c