[PATCH 5.17 064/140] net/mlx5: Fix slab-out-of-bounds while reading resource dump menu