From 64315f731cedb3ca1736533dab92592c330a1083 Mon Sep 17 00:00:00 2001 From: Thomas Graf Date: Wed, 13 Mar 2013 17:07:01 +0100 Subject: [PATCH] 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 --- lib/attr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/attr.c b/lib/attr.c index 90070df..093ffb5 100644 --- a/lib/attr.c +++ b/lib/attr.c @@ -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) {