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>
此提交包含在:
David Ahern
2018-10-07 20:16:24 -07:00
提交者 David S. Miller
父節點 3d0d4337d7
當前提交 dac9c9790e
共有 12 個檔案被更改,包括 21 行新增17 行删除

查看文件

@@ -1007,7 +1007,7 @@ static int xfrm_dump_sa(struct sk_buff *skb, struct netlink_callback *cb)
int err;
err = nlmsg_parse(cb->nlh, 0, attrs, XFRMA_MAX, xfrma_policy,
NULL);
cb->extack);
if (err < 0)
return err;