[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20081128.030547.243314805.davem@davemloft.net>
Date: Fri, 28 Nov 2008 03:05:47 -0800 (PST)
From: David Miller <davem@...emloft.net>
To: kaber@...sh.net
Cc: tgraf@...g.ch, johannes@...solutions.net, netdev@...r.kernel.org
Subject: Re: netlink: allow empty nested attributes
From: Patrick McHardy <kaber@...sh.net>
Date: Thu, 27 Nov 2008 13:57:19 +0100
> commit 57b0afc97f8249f0b4f665aa285ed89a9178ba42
> Author: Patrick McHardy <kaber@...sh.net>
> Date: Thu Nov 27 13:40:31 2008 +0100
>
> 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@...sh.net>
Applied, thanks Patrick.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists