net/mlx5: fix use of local array for global error