[PATCH openEuler-5.10 54/64] net/mlx5: Fix slab-out-of-bounds while reading resource dump menu