aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/netdev-times.py
diff options
context:
space:
mode:
authorJacob Keller <[email protected]>2022-04-11 16:29:03 -0700
committerTony Nguyen <[email protected]>2022-05-05 11:28:36 -0700
commitbaeb705fd6a7245cc1fa69ed991a9cffdf44a174 (patch)
treea1e7573c62b525453202e0f3b443cab5e739a023 /tools/perf/scripts/python/netdev-times.py
parent9880d3d6f9e3ab264d58368306dd83218ea6a3c1 (diff)
ice: always check VF VSI pointer values
The ice_get_vf_vsi function can return NULL in some cases, such as if handling messages during a reset where the VSI is being removed and recreated. Several places throughout the driver do not bother to check whether this VSI pointer is valid. Static analysis tools maybe report issues because they detect paths where a potentially NULL pointer could be dereferenced. Fix this by checking the return value of ice_get_vf_vsi everywhere. Signed-off-by: Jacob Keller <[email protected]> Reviewed-by: Paul Menzel <[email protected]> Tested-by: Konrad Jankowski <[email protected]> Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/netdev-times.py')
0 files changed, 0 insertions, 0 deletions