diff options
author | 2023-11-14 01:25:21 +0000 | |
---|---|---|
committer | 2023-12-13 17:22:17 -0800 | |
commit | da75fa542873e5f7d7f615566c0b00042d8a0437 (patch) | |
tree | cab8fa7fd39011d97bbb9bb2bbd40e3f538d1a3c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | net/mlx5e: fix a potential double-free in fs_udp_create_groups (diff) | |
download | wireguard-linux-da75fa542873e5f7d7f615566c0b00042d8a0437.tar.xz wireguard-linux-da75fa542873e5f7d7f615566c0b00042d8a0437.zip |
net/mlx5e: Fix overrun reported by coverity
Coverity Scan reports the following issue. But it's impossible that
mlx5_get_dev_index returns 7 for PF, even if the index is calculated
from PCI FUNC ID. So add the checking to make coverity slience.
CID 610894 (#2 of 2): Out-of-bounds write (OVERRUN)
Overrunning array esw->fdb_table.offloads.peer_miss_rules of 4 8-byte
elements at element index 7 (byte offset 63) using index
mlx5_get_dev_index(peer_dev) (which evaluates to 7).
Fixes: 9bee385a6e39 ("net/mlx5: E-switch, refactor FDB miss rule add/remove")
Signed-off-by: Jianbo Liu <jianbol@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions