mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
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>
This commit is contained in:
parent
67137f3cc7
commit
382bfeec48
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue