summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/aspeed-pwm-tacho.c
diff options
context:
space:
mode:
authorAndrew Lunn <andrew@lunn.ch>2019-04-25 00:33:00 +0200
committerDavid S. Miller <davem@davemloft.net>2019-04-26 18:06:14 +0200
commitfdfdf86720a34527f777cbe0d8599bf0528fa146 (patch)
treed73687fe5b1629b5ed92ff1c0c435add7141f2ca /drivers/hwmon/aspeed-pwm-tacho.c
parentgenetlink: use idr_alloc_cyclic for family->id assignment (diff)
downloadlinux-fdfdf86720a34527f777cbe0d8599bf0528fa146.tar.xz
linux-fdfdf86720a34527f777cbe0d8599bf0528fa146.zip
net: phy: marvell: Fix buffer overrun with stats counters
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 past 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 <andrew@lunn.ch> Reviewed-by: Florian Fainelli <f.fainelli@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/hwmon/aspeed-pwm-tacho.c')
0 files changed, 0 insertions, 0 deletions