netlink: call genetlink notification handler upon successful family

search.

Approved by:	re (cperciva)

(cherry picked from commit 7cbe771f01)
(cherry picked from commit ac40ea6fbb)
This commit is contained in:
Alexander V. Chernikov 2023-02-17 17:58:53 +00:00 committed by Ed Maste
parent 63270222c1
commit 1af9933359

View File

@ -160,9 +160,8 @@ genl_unregister_family(const char *family_name)
GENL_LOCK();
struct genl_family *gf = find_family(family_name);
nlctrl_notify(gf, CTRL_CMD_DELFAMILY);
if (gf != NULL) {
nlctrl_notify(gf, CTRL_CMD_DELFAMILY);
found = true;
unregister_groups(gf);
/* TODO: zero pointer first */