linux_old1/drivers/net/ethernet/broadcom/bnx2x
Yuval Mintz fea7564534 bnx2x: Prevent null pointer dereference in AFEX mode
The cnic module is responsible for initializing various bnx2x structs
via callbacks provided by the bnx2x module.
One such struct is the queue object for the FCoE queue.

If a device is working in AFEX mode and its configuration allows FCoE yet
the cnic module is not loaded, it's very likely a null pointer dereference
will occur, as the bnx2x will erroneously access the FCoE's queue object.

Prevent said access until cnic properly registers itself.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
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>
2013-04-10 15:27:04 -04:00
..
Makefile bnx2x: Segregate SR-IOV code 2013-01-07 19:49:14 -08:00
bnx2x.h bnx2x: Fix compilation with stop-on-error 2013-01-23 13:58:29 -05:00
bnx2x_cmn.c bnx2x: add missing napi deletion in error path 2013-03-17 12:26:52 -04:00
bnx2x_cmn.h bnx2x: Fix compilation with stop-on-error 2013-01-23 13:58:29 -05:00
bnx2x_dcb.c bnx2x: fix assignment of signed expression to unsigned variable 2013-03-24 17:27:28 -04:00
bnx2x_dcb.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_dump.h bnx2x: add `ethtool -w' support. 2013-01-15 15:07:59 -05:00
bnx2x_ethtool.c bnx2x: Fix KR2 link 2013-02-28 15:37:29 -05:00
bnx2x_fw_defs.h bnx2x: Semantic renovation 2013-01-23 13:58:27 -05:00
bnx2x_fw_file_hdr.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_hsi.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_init.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_init_ops.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_link.c bnx2x: Fix KR2 rapid link flap 2013-04-07 17:17:00 -04:00
bnx2x_link.h bnx2x: Fix SFP+ misconfiguration in iSCSI boot scenario 2013-03-08 00:35:44 -05:00
bnx2x_main.c bnx2x: Prevent null pointer dereference in AFEX mode 2013-04-10 15:27:04 -04:00
bnx2x_mfw_req.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_reg.h bnx2x: Introduce 2013 and advance version to 1.78.02 2013-01-15 15:07:59 -05:00
bnx2x_sp.c bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_sp.h bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_sriov.c bnx2x: SR-IOV version compatibility bugfix 2013-01-23 13:58:30 -05:00
bnx2x_sriov.h bnx2x: correct memory release scheme 2013-01-23 13:58:29 -05:00
bnx2x_stats.c bnx2x: Remove many sparse warnings 2013-01-23 13:58:29 -05:00
bnx2x_stats.h bnx2x: fix occasional statistics off-by-4GB error 2013-03-18 13:12:20 -04:00
bnx2x_vfpf.c bnx2x: remove dead code and make local funcs static 2013-02-24 20:16:02 -05:00
bnx2x_vfpf.h bnx2x: SR-IOV version compatibility bugfix 2013-01-23 13:58:30 -05:00