net/mlx5: Fix return value from tracer initialization
authorAya Levin <ayal@nvidia.com>
Tue, 8 Jun 2021 13:38:30 +0000 (16:38 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 10 Aug 2021 03:57:03 +0000 (20:57 -0700)
commitbd37c2888ccaa5ceb9895718f6909b247cc372e0
treef772564d3e5dd2d958b27b6d16b2912d9e26da7b
parent563476ae0c5e48a028cbfa38fa9d2fc0418eb88f
net/mlx5: Fix return value from tracer initialization

Check return value of mlx5_fw_tracer_start(), set error path and fix
return value of mlx5_fw_tracer_init() accordingly.

Fixes: c71ad41ccb0c ("net/mlx5: FW tracer, events handling")
Signed-off-by: Aya Levin <ayal@nvidia.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/diag/fw_tracer.c