X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=net%2Fcan%2Faf_can.c;h=e733725b11d4cdbc1010e65bc441fa2723bdb132;hb=6c5cb93b1e87be56d7f00767fd12cf57852a0b9f;hp=10f0528c3bf59c746de18f52f42e937edc9e9a48;hpb=769f3e8c384795cc350e2aae27de2a12374d19d4;p=mv-sheeva.git 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); }