diff options
author | Maxime Chevallier <maxime.chevallier@bootlin.com> | 2019-06-06 10:42:56 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-06-11 12:19:10 +0200 |
commit | 9d659f5cd70bd25f5e1c4ab45339e0a2c0a12386 (patch) | |
tree | d7ca8bc00b86f11837d240867022edc8972d4e51 /net/rds | |
parent | ae4133dfdcd5dcb8f198365bb34f460cdeb3961c (diff) | |
download | linux-stable-9d659f5cd70bd25f5e1c4ab45339e0a2c0a12386.tar.gz linux-stable-9d659f5cd70bd25f5e1c4ab45339e0a2c0a12386.tar.bz2 linux-stable-9d659f5cd70bd25f5e1c4ab45339e0a2c0a12386.zip |
net: mvpp2: Use strscpy to handle stat strings
[ Upstream commit d37acd5aa99c57505b64913e0e2624ec3daed8c5 ]
Use a safe strscpy call to copy the ethtool stat strings into the
relevant buffers, instead of a memcpy that will be accessing
out-of-bound data.
Fixes: 118d6298f6f0 ("net: mvpp2: add ethtool GOP statistics")
Signed-off-by: Maxime Chevallier <maxime.chevallier@bootlin.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net/rds')
0 files changed, 0 insertions, 0 deletions