net/mlx5: Fix fw tracer first block check
authorMoshe Shemesh <moshe@nvidia.com>
Thu, 30 Nov 2023 09:30:34 +0000 (11:30 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Jan 2024 12:42:29 +0000 (12:42 +0000)
commitd4d25b7b32694ac33b82c5b4f23f2b1024108577
tree13253cac4dfbc22b77dd2d065a22aef5a56ff81e
parent8bcb51d06a473ab71aceb6597e4acc972a35ed3e
net/mlx5: Fix fw tracer first block check

[ Upstream commit 4261edf11cb7c9224af713a102e5616329306932 ]

While handling new traces, to verify it is not the first block being
written, last_timestamp is checked. But instead of checking it is non
zero it is verified to be zero. Fix to verify last_timestamp is not
zero.

Fixes: c71ad41ccb0c ("net/mlx5: FW tracer, events handling")
Signed-off-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Feras Daoud <ferasda@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c