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 <t...@linutronix.de>
Cc: Chirag Kantharia <chirag.kantha...@hp.com>
Cc: hpiss <iss_storage...@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),


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to