Skip to content

Commit aff12ac

Browse files
KAGA-KOKOdavem330
authored andcommitted
atm: firestream: Use del_timer_sync() in teardown path
The device is about to vanish. So we need to make sure that the timer is completely stopped and the callback is not running on another CPU. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Chas Williams <chas@cmf.nrl.navy.mil> Cc: atm <linux-atm-general@lists.sourceforge.net> Cc: netdev <netdev@vger.kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent e471b40 commit aff12ac

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎drivers/atm/firestream.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2000,7 +2000,7 @@ static void firestream_remove_one(struct pci_dev *pdev)
20002000

20012001
fs_dprintk (FS_DEBUG_CLEANUP, "Freeing irq%d.\n", dev->irq);
20022002
free_irq (dev->irq, dev);
2003-
del_timer (&dev->timer);
2003+
del_timer_sync (&dev->timer);
20042004

20052005
atm_dev_deregister(dev->atm_dev);
20062006
free_queue (dev, &dev->hp_txq);

0 commit comments

Comments
 (0)