HomeFreeBSD

In if_purgeaddrs() we cannot hold the lock over the entire loop

Description

In if_purgeaddrs() we cannot hold the lock over the entire loop
due to called functions (as in other parts of the stack, leave a comment).
Put around a lock the removal of the ifa from the list however to
reduce the possible race with other places.

Obtained from: projects/vnet
MFC after: 2 weeks
Sponsored by: The FreeBSD Foundation

Details

Provenance
bzAuthored on
Parents
rS301504: Destroy the mutex last. In this case it should not matter, but
Branches
Unknown
Tags
Unknown