Date: Fri, 05 Jun 2026 19:28:32 +0000 From: Ed Maste <emaste@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org Subject: git: ab599e44dba3 - stable/15 - netlink: Fix lock leak in nl_find_nhop Message-ID: <6a232360.33569.6c8af2b3@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch stable/15 has been updated by emaste: URL: https://cgit.FreeBSD.org/src/commit/?id=ab599e44dba31d7b002aed8c71242e06d992b21a commit ab599e44dba31d7b002aed8c71242e06d992b21a Author: Ed Maste <emaste@FreeBSD.org> AuthorDate: 2026-05-21 21:14:41 +0000 Commit: Ed Maste <emaste@FreeBSD.org> CommitDate: 2026-06-05 19:28:06 +0000 netlink: Fix lock leak in nl_find_nhop Reviewed by: bz, pouria Fixes: 7e5bf68495cc ("netlink: add netlink support") Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D57156 (cherry picked from commit d66fec481bfd65cbabb6c12a410d76843e76083e) --- sys/netlink/route/nexthop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/route/nexthop.c b/sys/netlink/route/nexthop.c index 30aa3dd72534..8f3ebc123600 100644 --- a/sys/netlink/route/nexthop.c +++ b/sys/netlink/route/nexthop.c @@ -174,7 +174,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);home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a232360.33569.6c8af2b3>
