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>
This commit is contained in:
parent
60b370de8c
commit
64315f731c
1 changed files with 2 additions and 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) {
|
||||
|
|
Loading…
Add table
Reference in a new issue