Date: Fri, 30 Dec 2022 15:54:58 GMT From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: 06e879593a44 - main - routing: add missed RIB_WUNLOCK in the add_route_flags(). Message-ID: <202212301554.2BUFswjV002498@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212301554.2BUFswjV002498>