> +void mv88e6352_serdes_get_strings(struct mv88e6xxx_chip *chip, > + int port, uint8_t *data) > +{ > + struct mv88e6352_serdes_hw_stat *stat; > + int i; > + > + if (!mv88e6352_port_has_serdes(chip, port)) > + return; > + > + for (i = 0; i < ARRAY_SIZE(mv88e6352_serdes_hw_stats); i++) { > + stat = &mv88e6352_serdes_hw_stats[i]; > + memcpy(data + i * ETH_GSTRING_LEN, stat->string, > + ETH_GSTRING_LEN);
This has the same problem as Florain just fixed, using memcpy instead of strcnpy. I will spin a new version with this fixed. Andrew