]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: devlink: fix reporter dump dumpit
authorJiri Pirko <jiri@mellanox.com>
Mon, 7 Oct 2019 07:28:31 +0000 (09:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 7 Oct 2019 13:08:45 +0000 (09:08 -0400)
In order for attrs to be prepared for reporter dump dumpit callback,
set GENL_DONT_VALIDATE_DUMP_STRICT instead of GENL_DONT_VALIDATE_DUMP.

Fixes: ee85da535fe3 ("devlink: have genetlink code to parse the attrs during dumpit"
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/devlink.c

index 22f59461b0c1c0bf807f9f21c9da895365b3ac92..eb0a22f0588747c04a1b8bbf676d118942fbef48 100644 (file)
@@ -6176,7 +6176,8 @@ static const struct genl_ops devlink_nl_ops[] = {
        },
        {
                .cmd = DEVLINK_CMD_HEALTH_REPORTER_DUMP_GET,
-               .validate = GENL_DONT_VALIDATE_STRICT | GENL_DONT_VALIDATE_DUMP,
+               .validate = GENL_DONT_VALIDATE_STRICT |
+                           GENL_DONT_VALIDATE_DUMP_STRICT,
                .dumpit = devlink_nl_cmd_health_reporter_dump_get_dumpit,
                .flags = GENL_ADMIN_PERM,
                .internal_flags = DEVLINK_NL_FLAG_NEED_DEVLINK |