diff options
author | Johannes Berg <johannes.berg@intel.com> | 2018-09-26 11:15:33 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-28 19:24:39 +0200 |
commit | 9a659a35ba177cec30676e170fb6ed98157bcb0d (patch) | |
tree | 0a551784a6b946553793306790e75e1bb69d4f83 /lib/div64.c | |
parent | netlink: move extack setting into validate_nla() (diff) | |
download | linux-9a659a35ba177cec30676e170fb6ed98157bcb0d.tar.xz linux-9a659a35ba177cec30676e170fb6ed98157bcb0d.zip |
netlink: allow NLA_NESTED to specify nested policy to validate
Now that we have a validation_data pointer, and the len field in
the policy is unused for NLA_NESTED, we can allow using them both
to have nested validation. This can be nice in code, although we
still have to use nla_parse_nested() or similar which would also
take a policy; however, it also serves as documentation in the
policy without requiring a look at the code.
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/div64.c')
0 files changed, 0 insertions, 0 deletions