]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: stats: Fix a copy-paste error
authorYueHaibing <yuehaibing@huawei.com>
Wed, 19 May 2021 02:10:38 +0000 (10:10 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 May 2021 18:57:33 +0000 (11:57 -0700)
commit0d5100d6412bf295fed73454a939ff2cf1a62ba0
treed3fb0ad3e455a76c2d526a16fc6708451e59877d
parent5851f1f26f5edba48bcbfdfb93137ae67b10a6b4
ethtool: stats: Fix a copy-paste error

data->ctrl_stats should be memset with correct size.

Fixes: 2ddaf3222aab ("ethtool: add interface to read standard MAC Ctrl stats")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Acked-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ethtool/stats.c