aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorEd Maste <emaste@FreeBSD.org>2026-05-21 21:14:41 +0000
committerEd Maste <emaste@FreeBSD.org>2026-05-22 00:38:45 +0000
commitd66fec481bfd65cbabb6c12a410d76843e76083e (patch)
tree1be6c9bed3f91b98fa08ce8c390941eb739d0cbf /sys
parente4130ac13d2fe9c17b8f8e86d39a7b5223fe7b79 (diff)
Diffstat (limited to 'sys')
-rw-r--r--sys/netlink/route/nexthop.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netlink/route/nexthop.c b/sys/netlink/route/nexthop.c
index 314fb66431b9..0b4a929f65a6 100644
--- a/sys/netlink/route/nexthop.c
+++ b/sys/netlink/route/nexthop.c
@@ -173,7 +173,7 @@ nl_find_nhop(uint32_t fibnum, int family, uint32_t uidx,
CHT_SLIST_FIND_BYOBJ(&ctl->un_head, unhop, &key, unhop);
if (unhop != NULL) {
struct nhop_object *nh = unhop->un_nhop;
- UN_RLOCK(ctl);
+ UN_RUNLOCK(ctl);
*perror = 0;
nhop_ref_any(nh);
return (nh);