net: dsa: mv88e6xxx: Fix irq free'ing
authorAndrew Lunn <andrew@lunn.ch>
Thu, 8 Mar 2018 20:21:36 +0000 (21:21 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Mar 2018 16:20:59 +0000 (11:20 -0500)
Call the common irq free function, rather than going recursive and
blowing away the stack, followed by the machine.

Fixes: 294d711ee8c0 ("net: dsa: mv88e6xxx: Poll when no interrupt defined")
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c

index cfd5363..bd3ee84 100644 (file)
@@ -360,7 +360,7 @@ static void mv88e6xxx_g1_irq_free_common(struct mv88e6xxx_chip *chip)
 
 static void mv88e6xxx_g1_irq_free(struct mv88e6xxx_chip *chip)
 {
-       mv88e6xxx_g1_irq_free(chip);
+       mv88e6xxx_g1_irq_free_common(chip);
 
        free_irq(chip->irq, chip);
 }