projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.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
|
blame
|
history
diff --git
a/net/can/af_can.c
b/net/can/af_can.c
index 10f0528c3bf59c746de18f52f42e937edc9e9a48..e733725b11d4cdbc1010e65bc441fa2723bdb132 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);
}