genetlink: pass family to functions using groups
This doesn't really change anything, but prepares for the next patch that will change the APIs to pass the group ID within the family, rather than the global group ID. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
62b68e99fa
commit
68eb55031d
@@ -70,7 +70,7 @@ int ieee802154_nl_mcast(struct sk_buff *msg, unsigned int group)
|
||||
if (genlmsg_end(msg, hdr) < 0)
|
||||
goto out;
|
||||
|
||||
return genlmsg_multicast(msg, 0, group, GFP_ATOMIC);
|
||||
return genlmsg_multicast(&nl802154_family, msg, 0, group, GFP_ATOMIC);
|
||||
out:
|
||||
nlmsg_free(msg);
|
||||
return -ENOBUFS;
|
||||
|
Reference in New Issue
Block a user