Messages in this thread Patch in this message | | | Date | Sun, 23 Mar 2014 15:09:29 -0000 | From | Thomas Gleixner <> | Subject | [patch 09/16] block: cpqarray: Use del_timer_sync() in teardown |
| |
The data structure which contains the timer is about to be freed. Make sure the timer is completely stopped and no callback running anymore.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Cc: Chirag Kantharia <chirag.kantharia@hp.com> Cc: hpiss <iss_storagedev@hp.com> --- drivers/block/cpqarray.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Index: tip/drivers/block/cpqarray.c =================================================================== --- tip.orig/drivers/block/cpqarray.c +++ tip/drivers/block/cpqarray.c @@ -336,7 +336,7 @@ static void cpqarray_remove_one(int i) free_irq(hba[i]->intr, hba[i]); iounmap(hba[i]->vaddr); unregister_blkdev(COMPAQ_SMART2_MAJOR+i, hba[i]->devname); - del_timer(&hba[i]->timer); + del_timer_sync(&hba[i]->timer); remove_proc_entry(hba[i]->devname, proc_array); pci_free_consistent(hba[i]->pci_dev, NR_CMDS * sizeof(cmdlist_t), (hba[i]->cmd_pool),
| |