diff options
| author | Sasha Neftin <[email protected]> | 2021-06-14 12:19:39 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2021-07-20 23:11:36 +0000 |
| commit | 373e2829e7c2e1e606503cdb5c97749f512a4be9 (patch) | |
| tree | dc8c66ebe0ba63d7f65eb3662b348f505fbe81f1 /drivers/net/ethernet/intel/igc/igc_phy.c | |
| parent | net/e1000e: Fix spelling mistake "The" -> "This" (diff) | |
| download | kernel-373e2829e7c2e1e606503cdb5c97749f512a4be9.tar.gz kernel-373e2829e7c2e1e606503cdb5c97749f512a4be9.zip | |
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 <[email protected]>
Signed-off-by: Sasha Neftin <[email protected]>
Tested-by: Dvora Fuxbrumer <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_phy.c')
0 files changed, 0 insertions, 0 deletions
