diff options
author | Jianbo Liu <jianbol@nvidia.com> | 2023-11-14 04:25:21 +0300 |
---|---|---|
committer | Saeed Mahameed <saeedm@nvidia.com> | 2023-12-14 04:22:17 +0300 |
commit | da75fa542873e5f7d7f615566c0b00042d8a0437 (patch) | |
tree | cab8fa7fd39011d97bbb9bb2bbd40e3f538d1a3c /tools/perf/scripts/python/export-to-postgresql.py | |
parent | e75efc6466ae289e599fb12a5a86545dff245c65 (diff) | |
download | linux-da75fa542873e5f7d7f615566c0b00042d8a0437.tar.xz |
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