[PATCH 6.12 059/189] net/mlx5: Fix variable not being completed when function returns