Commit 382bfeec authored by Jesper Dangaard Brouer's avatar Jesper Dangaard Brouer Committed by David S. Miller
Browse files

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: default avatarJesper Dangaard Brouer <hawk@comx.dk>
Acked-by: default avatarOliver Hartkopp <oliver@hartkopp.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 67137f3c
...@@ -903,6 +903,8 @@ static __exit void can_exit(void) ...@@ -903,6 +903,8 @@ static __exit void can_exit(void)
} }
spin_unlock(&can_rcvlists_lock); spin_unlock(&can_rcvlists_lock);
rcu_barrier(); /* Wait for completion of call_rcu()'s */
kmem_cache_destroy(rcv_cache); kmem_cache_destroy(rcv_cache);
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment