Skip to content

Commit

Permalink
net/can/af_can.c: Change del_timer to del_timer_sync
Browse files Browse the repository at this point in the history
This is important for SMP platform to check if timer function is
executing on other CPU with deleting the timer.

Signed-off-by: Rajan Aggarwal <Rajan Aggarwal rajan.aggarwal85@gmail.com>
Acked-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
rajan.aggarwal85@gmail.com authored and David S. Miller committed Sep 15, 2011
1 parent 6b59e31 commit d9e64f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/can/af_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -857,7 +857,7 @@ static __exit void can_exit(void)
struct net_device *dev;

if (stats_timer)
del_timer(&can_stattimer);
del_timer_sync(&can_stattimer);

can_remove_proc();

Expand Down

0 comments on commit d9e64f8

Please sign in to comment.