Files
linux/drivers/net/ethernet/intel/igc
Sasha Neftin 980dee03d0 igc: Check if num of q_vectors is smaller than max before array access
[ Upstream commit 373e2829e7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-09-18 13:43:38 +02:00
..
2020-12-10 13:13:24 -08:00
2021-05-20 10:21:42 -07:00
2021-05-26 09:11:41 -07:00
2021-04-16 13:15:45 -07:00
2020-06-29 18:21:09 -07:00
2020-05-19 15:01:48 -07:00
2018-10-17 13:52:00 -07:00
2018-10-17 13:52:00 -07:00
2020-04-17 10:19:24 -07:00
2021-05-20 10:21:42 -07:00
2021-05-20 10:21:42 -07:00
2021-03-29 09:09:53 -07:00