On 4/24/19 3:33 PM, Andrew Lunn wrote: > marvell_get_sset_count() returns how many statistics counters there > are. If the PHY supports fibre, there are 3, otherwise two. > > marvell_get_strings() does not make this distinction, and always > returns 3 strings. This then often results in writing passed the end > of the buffer for the strings. > > Fixes: 2170fef78a40 ("Marvell phy: add field to get errors from fiber link.") > Signed-off-by: Andrew Lunn <and...@lunn.ch>
Reviewed-by: Florian Fainelli <f.faine...@gmail.com> -- Florian