mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-28 16:43:09 +00:00
Add missing address lock when we look at the ifa list
This commit is contained in:
parent
6c9f0f2124
commit
e261340ef7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191073
@ -189,11 +189,11 @@ sctp_is_desired_interface_type(struct ifaddr *ifa)
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
static void
|
||||
sctp_init_ifns_for_vrf(int vrfid)
|
||||
{
|
||||
|
||||
|
||||
/*
|
||||
* Here we must apply ANY locks needed by the IFN we access and also
|
||||
* make sure we lock any IFA that exists as we float through the
|
||||
@ -206,8 +206,8 @@ sctp_init_ifns_for_vrf(int vrfid)
|
||||
uint32_t ifa_flags;
|
||||
|
||||
TAILQ_FOREACH(ifn, &MODULE_GLOBAL(MOD_NET, ifnet), if_list) {
|
||||
IF_ADDR_LOCK(ifn);
|
||||
TAILQ_FOREACH(ifa, &ifn->if_addrlist, ifa_list) {
|
||||
|
||||
if (ifa->ifa_addr == NULL) {
|
||||
continue;
|
||||
}
|
||||
@ -248,10 +248,10 @@ sctp_init_ifns_for_vrf(int vrfid)
|
||||
sctp_ifa->localifa_flags &= ~SCTP_ADDR_DEFER_USE;
|
||||
}
|
||||
}
|
||||
IF_ADDR_UNLOCK(ifn);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
void
|
||||
sctp_init_vrf_list(int vrfid)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user