]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
bnx2x: properly initialize L5 features
authorDmitry Kravkov <dmitry@broadcom.com>
Thu, 8 Dec 2011 08:04:07 +0000 (08:04 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Dec 2011 00:58:35 +0000 (19:58 -0500)
commit7185bb335a1493f0ce27e9e94a1645a15db0fc0f
tree909781a732d6e62526d555855ac6a8594c9440e3
parent6d4cdf47d2cc9d40227c67c79a4942e36ed1b0ba
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.

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>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_cmn.h
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c