]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Jan 2018 02:34:04 +0000 (21:34 -0500)
commita78e93661c5fd30b9e1dee464b2f62f966883ef7
tree01fd49eb19015b753a0714ed690444c3c1a42eee
parentf15ca723c1ebe6c1a06bc95fda6b62cd87b44559
r8169: fix memory corruption on retrieval of hardware statistics.

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>
drivers/net/ethernet/realtek/r8169.c