mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
neigh: align nlattr properly when needed
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
270cb4d05b
commit
b676338fb3
1 changed files with 2 additions and 1 deletions
|
@ -1857,7 +1857,8 @@ static int neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl,
|
|||
ndst.ndts_table_fulls += st->table_fulls;
|
||||
}
|
||||
|
||||
if (nla_put(skb, NDTA_STATS, sizeof(ndst), &ndst))
|
||||
if (nla_put_64bit(skb, NDTA_STATS, sizeof(ndst), &ndst,
|
||||
NDTA_PAD))
|
||||
goto nla_put_failure;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue