Commit 205cd52b authored by Ingo Molnar's avatar Ingo Molnar Committed by Greg Kroah-Hartman

8139too: Use disable_irq_nosync() in rtl8139_poll_controller()

[ Upstream commit af3e0fcf ]

Use disable_irq_nosync() instead of disable_irq() as this might be
called in atomic context with netpoll.
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarSebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 872e1aea
...@@ -2233,7 +2233,7 @@ static void rtl8139_poll_controller(struct net_device *dev) ...@@ -2233,7 +2233,7 @@ static void rtl8139_poll_controller(struct net_device *dev)
struct rtl8139_private *tp = netdev_priv(dev); struct rtl8139_private *tp = netdev_priv(dev);
const int irq = tp->pci_dev->irq; const int irq = tp->pci_dev->irq;
disable_irq(irq); disable_irq_nosync(irq);
rtl8139_interrupt(irq, dev); rtl8139_interrupt(irq, dev);
enable_irq(irq); enable_irq(irq);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment