diff options
author | Nikita Danilov <[email protected]> | 2019-02-27 12:10:07 +0000 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-03-01 16:45:15 -0800 |
commit | 13b7997a103d90a2174ab93abefe3c9376bb97e5 (patch) | |
tree | 51f6339501202ca07f8c9ac019d0cae110d9dfdf /net/switchdev/switchdev.c | |
parent | ea4854ddbc31247b928376259aaa9460b453acb2 (diff) |
net: aquantia: fixed buffer overflow
The overflow is detected by smatch:
drivers/net/ethernet/aquantia/atlantic/aq_pci_func.c: 175
aq_pci_func_free_irqs() error: buffer overflow 'self->aq_vec' 8 <= 31
In reality msix_entry_mask always restricts number of iterations.
Adding extra condition to make logic clear and smatch happy.
Signed-off-by: Nikita Danilov <[email protected]>
Signed-off-by: Igor Russkikh <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions