git: 06e879593a44 - main - routing: add missed RIB_WUNLOCK in the add_route_flags().
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 30 Dec 2022 15:54:58 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=06e879593a445dd785d531a06fb19ab68076985b commit 06e879593a445dd785d531a06fb19ab68076985b Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-12-30 15:54:06 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-12-30 15:54:06 +0000 routing: add missed RIB_WUNLOCK in the add_route_flags(). MFC after: 2 weeks --- 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; }