From: Patrick McHardy Date: Fri, 28 Nov 2008 11:05:19 +0000 (-0800) Subject: netlink: allow empty nested attributes X-Git-Tag: v2.6.29-rc1~581^2~366 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ea5693ccc553951ae44cb963b28cce85edc275c9;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed