git: d6138a65405f - main - inet6: add the missing lock acquire to nd6_get_llentry
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 10 Feb 2025 14:32:04 UTC
The branch main has been updated by mjg:
URL: https://cgit.FreeBSD.org/src/commit/?id=d6138a65405f697715189363b2b18581e7abd982
commit d6138a65405f697715189363b2b18581e7abd982
Author: Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2025-02-10 14:27:37 +0000
Commit: Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2025-02-10 14:27:37 +0000
inet6: add the missing lock acquire to nd6_get_llentry
Reported by: Lexi Winter
PR: 282378
Sponsored by: Rubicon Communications, LLC ("Netgate")
---
sys/netinet6/nd6.c | 1 +
1 file changed, 1 insertion(+)
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);