diff options
author | Jesper Dangaard Brouer <hawk@comx.dk> | 2009-06-08 03:11:38 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-06-10 01:11:24 -0700 |
commit | 382bfeec48e43c416af9b271b9b70d2f61ef32d2 (patch) | |
tree | 9b9e400fe75b57f6f09da071306968ed8d12ef98 /net/can | |
parent | 67137f3cc727e4da0297ffd7bfade837aa15ecfa (diff) | |
download | linux-3.10-382bfeec48e43c416af9b271b9b70d2f61ef32d2.tar.gz linux-3.10-382bfeec48e43c416af9b271b9b70d2f61ef32d2.tar.bz2 linux-3.10-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/can/af_can.c b/net/can/af_can.c index 10f0528c3bf..e733725b11d 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); } |