linux/drivers/net/ethernet/intel/igc
Sasha Neftin 373e2829e7 igc: Check if num of q_vectors is smaller than max before array access
Ensure that the adapter->q_vector[MAX_Q_VECTORS] array isn't accessed
beyond its size. It was fixed by using a local variable num_q_vectors
as a limit for loop index, and ensure that num_q_vectors is not bigger
than MAX_Q_VECTORS.

Suggested-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Signed-off-by: Sasha Neftin <sasha.neftin@intel.com>
Tested-by: Dvora Fuxbrumer <dvorax.fuxbrumer@linux.intel.com>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2021-07-20 16:11:36 -07:00
..
igc.h Revert "igc: Export LEDs" 2021-07-20 13:53:59 +02:00
igc_base.c
igc_base.h
igc_defines.h Revert "igc: Export LEDs" 2021-07-20 13:53:59 +02:00
igc_diag.c
igc_diag.h
igc_dump.c
igc_ethtool.c igc: Make flex filter more flexible 2021-07-16 14:08:03 -07:00
igc_hw.h
igc_i225.c
igc_i225.h
igc_mac.c
igc_mac.h
igc_main.c igc: Check if num of q_vectors is smaller than max before array access 2021-07-20 16:11:36 -07:00
igc_nvm.c
igc_nvm.h
igc_phy.c
igc_phy.h
igc_ptp.c
igc_regs.h Revert "igc: Export LEDs" 2021-07-20 13:53:59 +02:00
igc_tsn.c
igc_tsn.h
igc_xdp.c
igc_xdp.h
Makefile