Skip to content

Commit

Permalink
krpc/clnt_nl: unregister the netlink group, when client is destroyed
Browse files Browse the repository at this point in the history
  • Loading branch information
glebius committed Feb 5, 2025
1 parent 57171f6 commit 936f176
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/rpc/clnt_nl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 936f176

Please sign in to comment.