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 <[email protected]>
Cc: Chas Williams <[email protected]>
Cc: atm <[email protected]>
Cc: netdev <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
KAGA-KOKO authored and davem330 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.