diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2014-03-23 11:09:28 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-03-25 21:06:02 -0400 |
commit | 869f273911dd37ed9086d6ab25ef832d10813ccd (patch) | |
tree | eecc6b96c1697cf2203c3a471493001cd72e9305 | |
parent | aff12acccbb1d61c9a6cfeb5cdd3d083fb5e40ef (diff) |
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 <tglx@linutronix.de>
Cc: Chas Williams <chas@cmf.nrl.navy.mil>
Cc: atm <linux-atm-general@lists.sourceforge.net>
Cc: netdev <netdev@vger.kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/atm/idt77105.c | 6 |
1 files changed, 3 insertions, 3 deletions
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); | |||
368 | 368 | ||
369 | static void __exit idt77105_exit(void) | 369 | static void __exit idt77105_exit(void) |
370 | { | 370 | { |
371 | /* turn off timers */ | 371 | /* turn off timers */ |
372 | del_timer(&stats_timer); | 372 | del_timer_sync(&stats_timer); |
373 | del_timer(&restart_timer); | 373 | del_timer_sync(&restart_timer); |
374 | } | 374 | } |
375 | 375 | ||
376 | module_exit(idt77105_exit); | 376 | module_exit(idt77105_exit); |