projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67137f3
)
can: af_can.c use rcu_barrier() on module unload.
author
Jesper Dangaard Brouer
<hawk@comx.dk>
Mon, 8 Jun 2009 03:11:38 +0000
(
03:11
+0000)
committer
David 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
patch
|
blob
|
history
diff --git
a/net/can/af_can.c
b/net/can/af_can.c
index
10f0528
..
e733725
100644
(file)
--- 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);
}