summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/syscall-counts.py
diff options
context:
space:
mode:
authorVladyslav Tarasiuk <vladyslavt@nvidia.com>2021-04-13 11:15:49 +0300
committerSaeed Mahameed <saeedm@nvidia.com>2021-04-19 20:17:06 -0700
commit6a5689ba0259acded00f69856fc364b158c54c2e (patch)
tree190eebc289b79fa87b53889558a443e6ce5e79b3 /tools/perf/scripts/python/syscall-counts.py
parentd408c01caef41d8ab1b43203164c8b6cbf18d084 (diff)
net/mlx5e: Fix possible non-initialized struct usage
If mlx5e_devlink_port_register() fails, driver may try to register devlink health TX and RX reporters on non-registered devlink port. Instead, create health reporters only if mlx5e_devlink_port_register() does not fail. And destroy reporters only if devlink_port is registered. Also, change mlx5e_get_devlink_port() behavior and return NULL in case port is not registered to replicate devlink's wrapper when ndo is not implemented. Signed-off-by: Vladyslav Tarasiuk <vladyslavt@nvidia.com> Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions