[PATCH openEuler-5.10 118/118] net: dsa: bcm_sf2: Fix array overrun in bcm_sf2_num_active_ports()