net/mlx5: add missing return value check