linux_dsm_epyc7002/drivers/net/ethernet/aquantia/atlantic
Nikita Danilov 13b7997a10 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>
2019-03-01 16:45:15 -08:00
..
hw_atl
aq_cfg.h
aq_common.h
aq_ethtool.c
aq_ethtool.h
aq_filters.c
aq_filters.h
aq_hw_utils.c
aq_hw_utils.h
aq_hw.h
aq_main.c
aq_main.h
aq_nic.c
aq_nic.h
aq_pci_func.c net: aquantia: fixed buffer overflow 2019-03-01 16:45:15 -08:00
aq_pci_func.h
aq_ring.c
aq_ring.h
aq_rss.h
aq_utils.h
aq_vec.c
aq_vec.h
Makefile
ver.h