r8169: Fix netpoll oops
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Wed, 20 Jun 2018 12:01:53 +0000 (15:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 21 Jun 2018 00:55:54 +0000 (09:55 +0900)
Pass the correct thing to rtl8169_interrupt() from netpoll.

Cc: Realtek linux nic maintainers <nic_swsd@realtek.com>
Cc: netdev@vger.kernel.org
Cc: Heiner Kallweit <hkallweit1@gmail.com>
Cc: David S. Miller <davem@davemloft.net>
Fixes: ebcd5daa7ffd ("r8169: change interrupt handler argument type")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/realtek/r8169.c

index 75dfac0248f45cb423fd9883e38349a456b1dc0d..f4cae2be0fda563e71f5b07f1798655169c8b683 100644 (file)
@@ -7148,7 +7148,7 @@ static void rtl8169_netpoll(struct net_device *dev)
 {
        struct rtl8169_private *tp = netdev_priv(dev);
 
-       rtl8169_interrupt(pci_irq_vector(tp->pci_dev, 0), dev);
+       rtl8169_interrupt(pci_irq_vector(tp->pci_dev, 0), tp);
 }
 #endif