diff options
author | Andrii Staikov <[email protected]> | 2023-08-22 15:16:53 -0700 |
---|---|---|
committer | David S. Miller <[email protected]> | 2023-08-23 11:48:04 +0100 |
commit | 9525a3c38accd2e186f52443e35e633e296cc7f5 (patch) | |
tree | 9acf78a37e52e8a371dd62288d8fd98b1168ef25 /tools/perf/scripts/python/powerpc-hcalls.py | |
parent | da71714e359b64bd7aab3bd56ec53f307f058133 (diff) |
i40e: fix potential NULL pointer dereferencing of pf->vf i40e_sync_vsi_filters()
Add check for pf->vf not being NULL before dereferencing
pf->vf[vsi->vf_id] in updating VSI filter sync.
Add a similar check before dereferencing !pf->vf[vsi->vf_id].trusted
in the condition for clearing promisc mode bit.
Fixes: c87c938f62d8 ("i40e: Add VF VLAN pruning")
Signed-off-by: Andrii Staikov <[email protected]>
Signed-off-by: Aleksandr Loktionov <[email protected]>
Tested-by: Rafal Romanowski <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/powerpc-hcalls.py')
0 files changed, 0 insertions, 0 deletions