diff options
author | 2021-01-12 13:34:29 +0200 | |
---|---|---|
committer | 2021-03-10 11:01:53 -0800 | |
commit | 1c2cdf0b603a3b0c763288ad92e9f3f1555925cf (patch) | |
tree | a20360d18f15de5a8be655564f3c27dd84626bf8 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | net/mlx5e: Accumulate port PTP TX stats with other channels stats (diff) | |
download | wireguard-linux-1c2cdf0b603a3b0c763288ad92e9f3f1555925cf.tar.xz wireguard-linux-1c2cdf0b603a3b0c763288ad92e9f3f1555925cf.zip |
net/mlx5e: Set PTP channel pointer explicitly to NULL
When closing the PTP channel, set its pointer explicitly to NULL. PTP
channel is opened on demand, the code verify the pointer validity before
access. Nullify it when closing the PTP channel to avoid unexpected
behavior.
Fixes: 145e5637d941 ("net/mlx5e: Add TX PTP port object support")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions