Skip to content

Commit

Permalink
can: af_can.c use rcu_barrier() on module unload.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jesper Dangaard Brouer authored and David S. Miller committed Jun 10, 2009
1 parent 67137f3 commit 382bfee
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions net/can/af_can.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 382bfee

Please sign in to comment.