summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/realtek/8139too.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2018-05-02 13:30:57 +0200
committerDavid S. Miller <davem@davemloft.net>2018-05-02 19:22:06 +0200
commitaf3e0fcf78879f718c5f73df0814951bd7057d34 (patch)
tree46d50e287ceaf42206af0e5b4586c4e6a826c471 /drivers/net/ethernet/realtek/8139too.c
parentsctp: fix the issue that the cookie-ack with auth can't get processed (diff)
downloadlinux-af3e0fcf78879f718c5f73df0814951bd7057d34.tar.xz
linux-af3e0fcf78879f718c5f73df0814951bd7057d34.zip
8139too: Use disable_irq_nosync() in rtl8139_poll_controller()
Use disable_irq_nosync() instead of disable_irq() as this might be called in atomic context with netpoll. Signed-off-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/realtek/8139too.c')
-rw-r--r--drivers/net/ethernet/realtek/8139too.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/realtek/8139too.c b/drivers/net/ethernet/realtek/8139too.c
index d24b47b8e0b2..d118da5a10a2 100644
--- a/drivers/net/ethernet/realtek/8139too.c
+++ b/drivers/net/ethernet/realtek/8139too.c
@@ -2224,7 +2224,7 @@ static void rtl8139_poll_controller(struct net_device *dev)
struct rtl8139_private *tp = netdev_priv(dev);
const int irq = tp->pci_dev->irq;
- disable_irq(irq);
+ disable_irq_nosync(irq);
rtl8139_interrupt(irq, dev);
enable_irq(irq);
}