git: 4757126074bb - stable/13 - routing: add missed RIB_WUNLOCK in the add_route_flags().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jan 2023 21:26:00 UTC
The branch stable/13 has been updated by melifaro:
URL: https://cgit.FreeBSD.org/src/commit/?id=4757126074bbaf542353ea081cc73b30af8e0644
commit 4757126074bbaf542353ea081cc73b30af8e0644
Author: Alexander V. Chernikov <melifaro@FreeBSD.org>
AuthorDate: 2022-12-30 15:54:06 +0000
Commit: Alexander V. Chernikov <melifaro@FreeBSD.org>
CommitDate: 2023-01-13 21:24:12 +0000
routing: add missed RIB_WUNLOCK in the add_route_flags().
MFC after: 2 weeks
(cherry picked from commit 06e879593a445dd785d531a06fb19ab68076985b)
---
sys/net/route/route_ctl.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
index d6c382735902..eaabe901b3cb 100644
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -793,6 +793,7 @@ add_route_flags(struct rib_head *rnh, struct rtentry *rt, struct route_nhop_data
if (op_flags & RTM_F_REPLACE) {
if (nhop_get_prio(rnd_orig.rnd_nhop) > nhop_get_prio(rnd_add->rnd_nhop)) {
/* Old path is "better" (e.g. has PINNED flag set) */
+ RIB_WUNLOCK(rnh);
error = EEXIST;
goto out;
}