From: Thomas Gleixner Date: Sun, 23 Mar 2014 15:09:28 +0000 (+0000) Subject: atm: idt77105: Use del_timer_sync() in exit path X-Git-Url: http://drtracing.org/?a=commitdiff_plain;h=869f273911dd37ed9086d6ab25ef832d10813ccd;p=deliverable%2Flinux.git atm: idt77105: Use del_timer_sync() in exit path The module is about to go away. Make sure everything is stopped safely before we pull the plug. Signed-off-by: Thomas Gleixner Cc: Chas Williams Cc: atm Cc: netdev Signed-off-by: David S. Miller --- diff --git a/drivers/atm/idt77105.c b/drivers/atm/idt77105.c index 45d506363aba..909c95bd7be2 100644 --- a/drivers/atm/idt77105.c +++ b/drivers/atm/idt77105.c @@ -368,9 +368,9 @@ EXPORT_SYMBOL(idt77105_init); static void __exit idt77105_exit(void) { - /* turn off timers */ - del_timer(&stats_timer); - del_timer(&restart_timer); + /* turn off timers */ + del_timer_sync(&stats_timer); + del_timer_sync(&restart_timer); } module_exit(idt77105_exit);