git: 936f1765b2b3 - main - krpc/clnt_nl: unregister the netlink group, when client is destroyed
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 05 Feb 2025 18:09:24 UTC
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);