aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMateusz Guzik <mjg@FreeBSD.org>2025-02-10 14:27:37 +0000
committerMateusz Guzik <mjg@FreeBSD.org>2025-02-10 14:27:37 +0000
commitd6138a65405f697715189363b2b18581e7abd982 (patch)
tree31d3a223d98504cdaaa23adf5849cd113d8364bb
parent0d2058abf3b252e77dae8808dd744c0293b5f433 (diff)
inet6: add the missing lock acquire to nd6_get_llentry
Reported by: Lexi Winter PR: 282378 Sponsored by: Rubicon Communications, LLC ("Netgate")
-rw-r--r--sys/netinet6/nd6.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/netinet6/nd6.c b/sys/netinet6/nd6.c
index e1fd421060df..887da1ebe21a 100644
--- a/sys/netinet6/nd6.c
+++ b/sys/netinet6/nd6.c
@@ -2357,6 +2357,7 @@ nd6_get_llentry(struct ifnet *ifp, const struct in6_addr *addr, int family)
} else {
/* child lle already exists, free newly-created one */
lltable_free_entry(LLTABLE6(ifp), child_lle);
+ LLE_WLOCK(lle_tmp);
child_lle = lle_tmp;
}
LLE_WUNLOCK(lle);