lkml.org 
[lkml]   [2014]   [Mar]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
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),



\
 
 \ /
  Last update: 2014-03-23 16:21    [W:0.157 / U:1.444 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site