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 11:55:54 +0000 (12:55 +0100)
commit0f51492d1bd5f7376d8175edd266b808d58df21f
treefc13df3e3aa96664485f6a4a36105fca5fdf5374
parent1bd21b158e07e0b8c5a2ce832305a0ebfe42c480
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