summaryrefslogtreecommitdiffstats
path: root/net/ipv6/addrconf.c
diff options
context:
space:
mode:
authorEric Dumazet2017-10-24 01:17:51 +0200
committerDavid S. Miller2017-10-24 10:54:19 +0200
commit4e5f47ab97ce68d9f766dfedc5762940a90e4c11 (patch)
treeeee9dc8bd3787345580c30e51bba2cc6faf367b8 /net/ipv6/addrconf.c
parentipv6: addrconf: do not block BH in /proc/net/if_inet6 handling (diff)
downloadkernel-qcow2-linux-4e5f47ab97ce68d9f766dfedc5762940a90e4c11.tar.gz
kernel-qcow2-linux-4e5f47ab97ce68d9f766dfedc5762940a90e4c11.tar.xz
kernel-qcow2-linux-4e5f47ab97ce68d9f766dfedc5762940a90e4c11.zip
ipv6: addrconf: do not block BH in ipv6_chk_home_addr()
rcu_read_lock() is enough here, no need to block BH. Signed-off-by: Eric Dumazet <edumazet@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/addrconf.c')
-rw-r--r--net/ipv6/addrconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 9232e9537082..5a8a10229a07 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -4248,8 +4248,8 @@ int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr)
struct inet6_ifaddr *ifp = NULL;
int ret = 0;
- rcu_read_lock_bh();
- hlist_for_each_entry_rcu_bh(ifp, &inet6_addr_lst[hash], addr_lst) {
+ rcu_read_lock();
+ hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) {
if (!net_eq(dev_net(ifp->idev->dev), net))
continue;
if (ipv6_addr_equal(&ifp->addr, addr) &&
@@ -4258,7 +4258,7 @@ int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr)
break;
}
}
- rcu_read_unlock_bh();
+ rcu_read_unlock();
return ret;
}
#endif