mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-16 10:20:30 +00:00
Don't leak the LLE lock if the arptimer callout is pending or inactive.
Reported by: David Rhodus MFC after: 1 month
This commit is contained in:
parent
bd19a23baa
commit
33b31db666
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=214675
@ -178,16 +178,16 @@ arptimer(void *arg)
|
||||
LLE_REMREF(lle);
|
||||
(void) llentry_free(lle);
|
||||
ARPSTAT_INC(timeouts);
|
||||
}
|
||||
} else {
|
||||
#ifdef DIAGNOSTIC
|
||||
else {
|
||||
struct sockaddr *l3addr = L3_ADDR(lle);
|
||||
log(LOG_INFO,
|
||||
"arptimer issue: %p, IPv4 address: \"%s\"\n", lle,
|
||||
inet_ntoa(
|
||||
((const struct sockaddr_in *)l3addr)->sin_addr));
|
||||
}
|
||||
#endif
|
||||
LLE_WUNLOCK(lle);
|
||||
}
|
||||
}
|
||||
IF_AFDATA_UNLOCK(ifp);
|
||||
CURVNET_RESTORE();
|
||||
|
Loading…
Reference in New Issue
Block a user