projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
87b6cf5
)
bridge: Use hlist_for_each_entry_rcu() in br_multicast_add_router()
author
David S. Miller
<davem@davemloft.net>
Tue, 27 Apr 2010 23:26:49 +0000
(16:26 -0700)
committer
David S. Miller
<davem@davemloft.net>
Tue, 27 Apr 2010 23:26:49 +0000
(16:26 -0700)
Noticed by Michał Mirosław.
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_multicast.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bridge/br_multicast.c
b/net/bridge/br_multicast.c
index fcba313f18944437055f11d25af4fcd3dfb460e0..e29c9b738796741a30cecd80558012068859f443 100644
(file)
--- a/
net/bridge/br_multicast.c
+++ b/
net/bridge/br_multicast.c
@@
-1045,7
+1045,7
@@
static void br_multicast_add_router(struct net_bridge *br,
struct net_bridge_port *p;
struct hlist_node *n, *last = NULL;
- hlist_for_each_entry(p, n, &br->router_list, rlist) {
+ hlist_for_each_entry
_rcu
(p, n, &br->router_list, rlist) {
if ((unsigned long) port >= (unsigned long) p) {
hlist_add_before_rcu(n, &port->rlist);
return;