linux_dsm_epyc7002/drivers/net/ethernet/broadcom/bnx2x
Ariel Elior 5ae30d7804 bnx2x: Protect against VFs' ndos when SR-IOV is disabled
Since SR-IOV can be activated dynamically and iproute2 can be called
asynchronously, the various callbacks need a robust sanity check before
attempting to access the SR-IOV database and members since there are numerous
states in which it can find the driver (e.g., PF is down, sriov was not enabled
yet, VF is down, etc.).

In many of the states the callback result will be null pointer dereference.

Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2013-08-20 00:21:47 -07:00
..
bnx2x_cmn.c net: rename CONFIG_NET_LL_RX_POLL to CONFIG_NET_RX_BUSY_POLL 2013-08-01 15:11:17 -07:00
bnx2x_cmn.h bnx2x: replace mechanism to check for next available packet 2013-06-19 18:32:17 -07:00
bnx2x_dcb.c bnx2x: Consider DCBX remote error 2013-08-20 00:21:47 -07:00
bnx2x_dcb.h bnx2x: Change DCB context handling 2013-08-20 00:21:47 -07:00
bnx2x_dump.h bnx2x: Revise comments and alignment 2013-06-02 21:36:47 -07:00
bnx2x_ethtool.c bnx2x: fill in sane dump flag information 2013-07-02 00:15:56 -07:00
bnx2x_fw_defs.h bnx2x, bnx2fc: Use per port max exchange resources 2013-04-25 04:06:46 -04: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: fix PTE write access error 2013-08-13 16:04:28 -07:00
bnx2x_init_ops.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_link.c bnx2x: Allow RX/TX pause control in autoneg 2013-04-24 16:33:53 -04:00
bnx2x_link.h bnx2x: Support reading I2C EEPROM SFF8472 2013-03-27 12:48:32 -04:00
bnx2x_main.c bnx2x: prevent VF benign attentions 2013-08-20 00:21:47 -07: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: Revise prints 2013-06-02 21:36:47 -07:00
bnx2x_sp.c bnx2x: Revise comments and alignment 2013-06-02 21:36:47 -07:00
bnx2x_sp.h bnx2x: Revise comments and alignment 2013-06-02 21:36:47 -07:00
bnx2x_sriov.c bnx2x: Protect against VFs' ndos when SR-IOV is disabled 2013-08-20 00:21:47 -07:00
bnx2x_sriov.h bnx2x: Fix compilation with no IOV support 2013-06-24 01:47:47 -07:00
bnx2x_stats.c bnx2x: protect different statistics flows 2013-08-13 16:04:28 -07:00
bnx2x_stats.h bnx2x: Semantic change of empty lines 2013-06-02 21:36:47 -07:00
bnx2x_vfpf.c bnx2x: Improve PF behaviour toward VF 2013-06-23 23:54:15 -07:00
bnx2x_vfpf.h bnx2x: Improve PF behaviour toward VF 2013-06-23 23:54:15 -07:00
bnx2x.h bnx2x: Change DCB context handling 2013-08-20 00:21:47 -07:00
Makefile