mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-11-07 04:36:52 -10:00
krpc/clnt_nl: unregister the netlink group, when client is destroyed
This commit is contained in:
1 parent
57171f6d14
commit
936f1765b2
1 file changed
+1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user