diff options
author | Ingo Molnar <mingo@elte.hu> | 2018-05-02 13:30:57 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-02 13:22:06 -0400 |
commit | af3e0fcf78879f718c5f73df0814951bd7057d34 (patch) | |
tree | 46d50e287ceaf42206af0e5b4586c4e6a826c471 | |
parent | ce402f044e4e432c296f90eaabb8dbe8f3624391 (diff) | |
download | linux-af3e0fcf78879f718c5f73df0814951bd7057d34.tar.bz2 |
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>
-rw-r--r-- | drivers/net/ethernet/realtek/8139too.c | 2 |
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); } |