summaryrefslogtreecommitdiffstats
path: root/net/core/devlink.c
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2018-10-07 20:16:24 -0700
committerDavid S. Miller <davem@davemloft.net>2018-10-08 10:39:04 -0700
commitdac9c9790e542777079999900594fd069ba10489 (patch)
treebcaa1615ea86b788b7b7808956f08677059ee17c /net/core/devlink.c
parent3d0d4337d7a105c5e8ba85c6e7b75437b4c6745e (diff)
downloadlinux-stable-dac9c9790e542777079999900594fd069ba10489.tar.gz
linux-stable-dac9c9790e542777079999900594fd069ba10489.tar.bz2
linux-stable-dac9c9790e542777079999900594fd069ba10489.zip
net: Add extack to nlmsg_parse
Make sure extack is passed to nlmsg_parse where easy to do so. Most of these are dump handlers and leveraging the extack in the netlink_callback. Signed-off-by: David Ahern <dsahern@gmail.com> Acked-by: Christian Brauner <christian@brauner.io> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/devlink.c')
-rw-r--r--net/core/devlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/core/devlink.c b/net/core/devlink.c
index 938f68ee92f0..6dae81d65d5c 100644
--- a/net/core/devlink.c
+++ b/net/core/devlink.c
@@ -3504,7 +3504,7 @@ static int devlink_nl_cmd_region_read_dumpit(struct sk_buff *skb,
start_offset = *((u64 *)&cb->args[0]);
err = nlmsg_parse(cb->nlh, GENL_HDRLEN + devlink_nl_family.hdrsize,
- attrs, DEVLINK_ATTR_MAX, ops->policy, NULL);
+ attrs, DEVLINK_ATTR_MAX, ops->policy, cb->extack);
if (err)
goto out;