]> git.baikalelectronics.ru Git - kernel.git/commit
r8169: don't try to read counters if chip is in a PCI power-save state
authorHeiner Kallweit <hkallweit1@gmail.com>
Sun, 6 Jan 2019 19:44:00 +0000 (20:44 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Jan 2019 15:19:25 +0000 (07:19 -0800)
commitfbbea7bd767d6e62eadec1c5e2061393f63d2140
tree77f45e3218b391b7cf4865baaa5b16c69fb25e4f
parent01f5df9fe920e0c0d3cf8777cfd48ad774e1028c
r8169: don't try to read counters if chip is in a PCI power-save state

Avoid log spam caused by trying to read counters from the chip whilst
it is in a PCI power-save state.

Reference: https://bugzilla.kernel.org/show_bug.cgi?id=107421

Fixes: 1bc6ff9085d6 ("r8169: Dereference MMIO address immediately before use")
Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c