Skip to content

Commit

Permalink
atm: idt77105: Use del_timer_sync() in exit path
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thomas Gleixner authored and David S. Miller committed Mar 26, 2014
1 parent aff12ac commit 869f273
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/atm/idt77105.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 869f273

Please sign in to comment.