]> git.baikalelectronics.ru Git - kernel.git/commit
net: phy: mscc: initialize stats array
authorAndreas Schwab <schwab@suse.de>
Wed, 24 Jul 2019 15:32:57 +0000 (17:32 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 24 Jul 2019 22:25:44 +0000 (15:25 -0700)
commit49cfea1dabdcc3cac392988bc5e5084cbcc9274a
treea6e0a9651caba61280040036d44bec4807cf4417
parent24ee030be752a4d1391a00314cd45d7faa37967b
net: phy: mscc: initialize stats array

The memory allocated for the stats array may contain arbitrary data.

Fixes: bb4da4d31871 ("net: phy: mscc: add support for VSC8514 PHY.")
Fixes: cfbe8cd34090 ("net: phy: mscc: add support for VSC8574 PHY")
Fixes: 8fa2bda53e3f ("net: phy: mscc: add support for VSC8584 PHY")
Fixes: 53bbb54ecea7 ("net: phy: mscc: add ethtool statistics counters")
Signed-off-by: Andreas Schwab <schwab@suse.de>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/phy/mscc.c