Skip to content
Snippets Groups Projects
Commit 451d33dd authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by David S. Miller
Browse files

at1700: fix double free_irq


free_irq() is called both in net_close() and cleanup_card().  Since it
is requested in at1700_probe1(), leave free_irq() only in cleanup_card()
for balance.

Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 835bb606
No related branches found
No related tags found
No related merge requests found
...@@ -811,10 +811,8 @@ static int net_close(struct net_device *dev) ...@@ -811,10 +811,8 @@ static int net_close(struct net_device *dev)
/* No statistic counters on the chip to update. */ /* No statistic counters on the chip to update. */
/* Disable the IRQ on boards of fmv18x where it is feasible. */ /* Disable the IRQ on boards of fmv18x where it is feasible. */
if (lp->jumpered) { if (lp->jumpered)
outb(0x00, ioaddr + IOCONFIG1); outb(0x00, ioaddr + IOCONFIG1);
free_irq(dev->irq, dev);
}
/* Power-down the chip. Green, green, green! */ /* Power-down the chip. Green, green, green! */
outb(0x00, ioaddr + CONFIG_1); outb(0x00, ioaddr + CONFIG_1);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment