Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 5 Feb 2025 18:09:24 GMT
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 936f1765b2b3 - main - krpc/clnt_nl: unregister the netlink group, when client is destroyed
Message-ID:  <202502051809.515I9OYj082668@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by glebius:

URL: https://cgit.FreeBSD.org/src/commit/?id=936f1765b2b349809591afb8209b022c9af61bd7

commit 936f1765b2b349809591afb8209b022c9af61bd7
Author:     Gleb Smirnoff <glebius@FreeBSD.org>
AuthorDate: 2025-02-05 18:09:06 +0000
Commit:     Gleb Smirnoff <glebius@FreeBSD.org>
CommitDate: 2025-02-05 18:09:06 +0000

    krpc/clnt_nl: unregister the netlink group, when client is destroyed
---
 sys/rpc/clnt_nl.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/rpc/clnt_nl.c b/sys/rpc/clnt_nl.c
index 90d159907d3c..07bc1e5ae599 100644
--- a/sys/rpc/clnt_nl.c
+++ b/sys/rpc/clnt_nl.c
@@ -461,6 +461,7 @@ clnt_nl_destroy(CLIENT *cl)
 
 	MPASS(TAILQ_EMPTY(&nl->nl_pending));
 
+	genl_unregister_group(rpcnl_family_id, nl->nl_hdr.group);
 	rw_wlock(&rpcnl_global_lock);
 	RB_REMOVE(nl_data_t, &rpcnl_clients, nl);
 	rw_wlock(&rpcnl_global_lock);


help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202502051809.515I9OYj082668>