]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnx2x: properly initialize L5 features
authorJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 13:11:07 +0000 (21:11 +0800)
committerJoe Jin <joe.jin@oracle.com>
Wed, 16 May 2012 14:41:13 +0000 (22:41 +0800)
commit2e4b7522e5203ab385a8fd2b6c8924e3113673b2
treedf817ed330d3f9a8fea661e328957affad6b949f
parent685fd41561277e386b1bf56e079f5c64683e4643
bnx2x: properly initialize L5 features

The code is missing initialization of NO_FCOE_FLAG and NO_ISCSI*FLAGS
when CONFIG_CNIC is not selected.
This causes panic during driver load since commit
1d187b34daaecbb87aa523ba46b92930a388cb21 where NO_FCOE tested
unconditionally (outside #ifdef BCM_CNIC  structure) and
accessed fp[FCOE_IDX] which is not allocated.

(backported from commit 7185bb335a1493f0ce27e9e94a1645a15db0fc0f)
Reported-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: Dmitry Kravkov <dmitry@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_cmn.h
drivers/net/bnx2x/bnx2x_main.c