]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
can: af_can.c use rcu_barrier() on module unload.
authorJesper Dangaard Brouer <hawk@comx.dk>
Mon, 8 Jun 2009 03:11:38 +0000 (03:11 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Jun 2009 08:11:24 +0000 (01:11 -0700)
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>
net/can/af_can.c

index 10f0528c3bf59c746de18f52f42e937edc9e9a48..e733725b11d4cdbc1010e65bc441fa2723bdb132 100644 (file)
@@ -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);
 }