summaryrefslogtreecommitdiff
path: root/net/can
diff options
context:
space:
mode:
authorrajan.aggarwal85@gmail.com <rajan.aggarwal85@gmail.com>2011-08-31 03:57:38 +0400
committerDavid S. Miller <davem@davemloft.net>2011-09-15 22:49:43 +0400
commitd9e64f83ebb8f563810b10536b23516d3bd30e80 (patch)
tree6a7268d3f45d678021c5d26ee86cfff074292d47 /net/can
parent6b59e3191daade2b975eeec1c71c591eb5c86b7b (diff)
downloadlinux-d9e64f83ebb8f563810b10536b23516d3bd30e80.tar.xz
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>
Diffstat (limited to 'net/can')
-rw-r--r--net/can/af_can.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index 8ce926d3b2cb..9b0c32a2690c 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -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();