OSDN Git Service

r8169: fix memory corruption on retrieval of hardware statistics.
authorFrancois Romieu <romieu@fr.zoreil.com>
Fri, 26 Jan 2018 00:53:26 +0000 (01:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Jan 2018 13:03:46 +0000 (14:03 +0100)
commit72d4f3abd6d3521f5cd978b63f9301051f127812
tree134c54bbf5c23597955a2918989b7205c4277ec8
parentd32e5740001972c1bb193dd60af02721d047a17e
r8169: fix memory corruption on retrieval of hardware statistics.

[ Upstream commit a78e93661c5fd30b9e1dee464b2f62f966883ef7 ]

Hardware statistics retrieval hurts in tight invocation loops.

Avoid extraneous write and enforce strict ordering of writes targeted to
the tally counters dump area address registers.

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Tested-by: Oliver Freyermuth <o.freyermuth@googlemail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/realtek/r8169.c