genetlink: use attrs from struct genl_info
Since dumps carry struct genl_info now, use the attrs pointer from genl_info and remove the one in struct genl_dumpit_info. Reviewed-by: Johannes Berg <johannes@sipsolutions.net> Reviewed-by: Miquel Raynal <miquel.raynal@bootlin.com> Reviewed-by: Jiri Pirko <jiri@nvidia.com> Link: https://lore.kernel.org/r/20230814214723.2924989-6-kuba@kernel.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
@ -262,7 +262,7 @@ nl802154_prepare_wpan_dev_dump(struct sk_buff *skb,
|
||||
|
||||
if (!cb->args[0]) {
|
||||
*wpan_dev = __cfg802154_wpan_dev_from_attrs(sock_net(skb->sk),
|
||||
info->attrs);
|
||||
info->info.attrs);
|
||||
if (IS_ERR(*wpan_dev)) {
|
||||
err = PTR_ERR(*wpan_dev);
|
||||
goto out_unlock;
|
||||
@ -570,7 +570,7 @@ static int nl802154_dump_wpan_phy_parse(struct sk_buff *skb,
|
||||
struct nl802154_dump_wpan_phy_state *state)
|
||||
{
|
||||
const struct genl_dumpit_info *info = genl_dumpit_info(cb);
|
||||
struct nlattr **tb = info->attrs;
|
||||
struct nlattr **tb = info->info.attrs;
|
||||
|
||||
if (tb[NL802154_ATTR_WPAN_PHY])
|
||||
state->filter_wpan_phy = nla_get_u32(tb[NL802154_ATTR_WPAN_PHY]);
|
||||
|
Reference in New Issue
Block a user