[PATCH 5.10 59/70] net/mlx5: Fix slab-out-of-bounds while reading resource dump menu