]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: mvneta: fix trivial cut-off issue in mvneta_ethtool_update_stats
authorJisheng Zhang <jszhang@marvell.com>
Wed, 20 Jan 2016 08:36:25 +0000 (16:36 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2020 08:26:32 +0000 (10:26 +0200)
commit4cbe341dce1686602bbf83f525cf360af61756ab
tree1e67c610686e7d16ce8291c80732fb4579953fa9
parenta0598fb1a289cd6205669d8c9e217ba45fc7a2a9
net: mvneta: fix trivial cut-off issue in mvneta_ethtool_update_stats

commit 2c832293e09be2f998ea916650927c8ccd5b4b3b upstream.

When s->type is T_REG_64, the high 32bits are lost in val. This patch
fixes this trivial issue.

Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Fixes: 9b0cdefa4cd5 ("net: mvneta: add ethtool statistics")
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/marvell/mvneta.c