summaryrefslogtreecommitdiffstats
path: root/net/can
diff options
context:
space:
mode:
authorJesper Dangaard Brouer <hawk@comx.dk>2009-06-08 03:11:38 +0000
committerDavid S. Miller <davem@davemloft.net>2009-06-10 01:11:24 -0700
commit382bfeec48e43c416af9b271b9b70d2f61ef32d2 (patch)
tree9b9e400fe75b57f6f09da071306968ed8d12ef98 /net/can
parent67137f3cc727e4da0297ffd7bfade837aa15ecfa (diff)
downloadtalos-obmc-linux-382bfeec48e43c416af9b271b9b70d2f61ef32d2.tar.gz
talos-obmc-linux-382bfeec48e43c416af9b271b9b70d2f61ef32d2.zip
can: af_can.c use rcu_barrier() on module unload.
This module uses rcu_call() thus it should use rcu_barrier() on module unload. Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk> Acked-by: Oliver Hartkopp <oliver@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, 2 insertions, 0 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c
index 10f0528c3bf5..e733725b11d4 100644
--- a/net/can/af_can.c
+++ b/net/can/af_can.c
@@ -903,6 +903,8 @@ static __exit void can_exit(void)
}
spin_unlock(&can_rcvlists_lock);
+ rcu_barrier(); /* Wait for completion of call_rcu()'s */
+
kmem_cache_destroy(rcv_cache);
}
OpenPOWER on IntegriCloud