Skip to content

Commit 4e5f47a

Browse files
edumazetdavem330
authored andcommitted
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>
1 parent a5c1d98 commit 4e5f47a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎net/ipv6/addrconf.c‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4248,8 +4248,8 @@ int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr)
42484248
struct inet6_ifaddr *ifp = NULL;
42494249
int ret = 0;
42504250

4251-
rcu_read_lock_bh();
4252-
hlist_for_each_entry_rcu_bh(ifp, &inet6_addr_lst[hash], addr_lst) {
4251+
rcu_read_lock();
4252+
hlist_for_each_entry_rcu(ifp, &inet6_addr_lst[hash], addr_lst) {
42534253
if (!net_eq(dev_net(ifp->idev->dev), net))
42544254
continue;
42554255
if (ipv6_addr_equal(&ifp->addr, addr) &&
@@ -4258,7 +4258,7 @@ int ipv6_chk_home_addr(struct net *net, const struct in6_addr *addr)
42584258
break;
42594259
}
42604260
}
4261-
rcu_read_unlock_bh();
4261+
rcu_read_unlock();
42624262
return ret;
42634263
}
42644264
#endif

0 commit comments

Comments
 (0)