]> git.baikalelectronics.ru Git - kernel.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)
commitd9d191e57bae2aeae7422eacc941ca1adc42ed2c
tree01fd49eb19015b753a0714ed690444c3c1a42eee
parentf9208097b27ed8a07ca2eb27e11706ff0b089f82
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