mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 00:33:30 +00:00
netlink: call genetlink notification handler upon successful family
search. Approved by: re (cperciva) (cherry picked from commit7cbe771f01
) (cherry picked from commitac40ea6fbb
)
This commit is contained in:
parent
63270222c1
commit
1af9933359
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user