diff options
author | Nikita Danilov <nikita.danilov@aquantia.com> | 2019-02-27 07:10:07 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-03-01 19:45:15 -0500 |
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 <nikita.danilov@aquantia.com>
Signed-off-by: Igor Russkikh <igor.russkikh@aquantia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions