diff options
author | Thomas Graf <tgraf@suug.ch> | 2013-03-13 17:07:01 +0100 |
---|---|---|
committer | Thomas Graf <tgraf@suug.ch> | 2013-03-14 12:46:06 +0100 |
commit | 64315f731cedb3ca1736533dab92592c330a1083 (patch) | |
tree | 35b7177a950446f4e644473be15dedf94e9ce9b1 | |
parent | 60b370de8ca2c66a9259182ae2fc4588ed8777d9 (diff) |
attr: No longer warn about attribute of type 0
The kernel will start using type 0 attributes for padding purposes.
Signed-off-by: Thomas Graf <tgraf@suug.ch>
-rw-r--r-- | lib/attr.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -250,10 +250,9 @@ int nla_parse(struct nlattr *tb[], int maxtype, struct nlattr *head, int len, nla_for_each_attr(nla, head, len, rem) { int type = nla_type(nla); - if (type == 0) { - NL_DBG(1, "Illegal nla->nla_type == 0\n"); + /* Padding attributes */ + if (type == 0) continue; - } if (type <= maxtype) { if (policy) { |