diff options
author | Patrick McHardy <kaber@trash.net> | 2008-11-28 12:05:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-11-28 12:05:19 +0100 |
commit | ea5693ccc553951ae44cb963b28cce85edc275c9 (patch) | |
tree | 44ca6da57e63035537d01cf58c24837067c2ec26 /samples/Makefile | |
parent | Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/kaber/... (diff) | |
download | linux-ea5693ccc553951ae44cb963b28cce85edc275c9.tar.xz linux-ea5693ccc553951ae44cb963b28cce85edc275c9.zip |
netlink: allow empty nested attributes
validate_nla() currently doesn't allow empty nested attributes. This
makes userspace code unnecessarily complicated when starting and ending
the nested attribute is done by generic upper level code and the inner
attributes are dumped by a module.
Add a special case to accept empty nested attributes. When the nested
attribute is non empty, the same checks as before are performed.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/Makefile')
0 files changed, 0 insertions, 0 deletions