[patch 11/16] block: xsysace; Use del_timer_sync() in exit path
From: Thomas Gleixner
Date: Sun Mar 23 2014 - 11:12:56 EST
The data structure which contains the timer is about to be freed. Make
sure no callback is running.
Signed-off-by: Thomas Gleixner <tglx@xxxxxxxxxxxxx>
Cc: Grant Likely <grant.likely@xxxxxxxxxx>
---
drivers/block/xsysace.c | 2 ++
1 file changed, 2 insertions(+)
Index: tip/drivers/block/xsysace.c
===================================================================
--- tip.orig/drivers/block/xsysace.c
+++ tip/drivers/block/xsysace.c
@@ -1088,6 +1088,8 @@ static void ace_teardown(struct ace_devi
if (ace->irq)
free_irq(ace->irq, ace);
+ del_timer_sync(&ace->stall_timer);
+
iounmap(ace->baseaddr);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/