From: Thomas Gleixner Date: Sun, 23 Mar 2014 15:09:28 +0000 (+0000) Subject: atm: firestream: Use del_timer_sync() in teardown path X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=aff12acccbb1d61c9a6cfeb5cdd3d083fb5e40ef;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 Cc: Chas Williams Cc: atm Cc: netdev Signed-off-by: David S. Miller --- diff --git a/drivers/atm/firestream.c b/drivers/atm/firestream.c index f43e1c13b300..82f2ae0d7cc4 100644 --- a/drivers/atm/firestream.c +++ b/drivers/atm/firestream.c @@ -2000,7 +2000,7 @@ static void firestream_remove_one(struct pci_dev *pdev) fs_dprintk (FS_DEBUG_CLEANUP, "Freeing irq%d.\n", dev->irq); free_irq (dev->irq, dev); - del_timer (&dev->timer); + del_timer_sync (&dev->timer); atm_dev_deregister(dev->atm_dev); free_queue (dev, &dev->hp_txq);