diff options
author | 2019-05-02 16:15:10 +0200 | |
---|---|---|
committer | 2019-05-04 01:27:10 -0400 | |
commit | d54a16b20157ce300298eb4a1169bf9acfda3d08 (patch) | |
tree | 6f0fa658ca777ba4f909abd4615ae7953f1d4ac3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | genetlink: do not validate dump requests if there is no policy (diff) | |
download | wireguard-linux-d54a16b20157ce300298eb4a1169bf9acfda3d08.tar.xz wireguard-linux-d54a16b20157ce300298eb4a1169bf9acfda3d08.zip |
netlink: set bad attribute also on maxtype check
The check that attribute type is within 0...maxtype range in
__nla_validate_parse() sets only error message but not bad_attr in extack.
Set also bad_attr to tell userspace which attribute failed validation.
Signed-off-by: Michal Kubecek <mkubecek@suse.cz>
Reviewed-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions