Commit d9e64f83ebb8f563810b10536b23516d3bd30e80

Authored by rajan.aggarwal85@gmail.com
Committed by David S. Miller
1 parent 6b59e3191d

net/can/af_can.c: Change del_timer to del_timer_sync

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -857,7 +857,7 @@
857 857 struct net_device *dev;
858 858  
859 859 if (stats_timer)
860   - del_timer(&can_stattimer);
  860 + del_timer_sync(&can_stattimer);
861 861  
862 862 can_remove_proc();
863 863