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)
commitf972037e71246c5e0916eef835174d58ffc517e4
treea6e0a9651caba61280040036d44bec4807cf4417
parentc7fa7f567cab6532be285a5df104617d80bce245
net: phy: mscc: initialize stats array

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

Fixes: e4f9ba642f0b ("net: phy: mscc: add support for VSC8514 PHY.")
Fixes: 00d70d8e0e78 ("net: phy: mscc: add support for VSC8574 PHY")
Fixes: a5afc1678044 ("net: phy: mscc: add support for VSC8584 PHY")
Fixes: f76178dc5218 ("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