Skip to content

Commit b676338

Browse files
NicolasDichteldavem330
authored andcommitted
neigh: align nlattr properly when needed
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 270cb4d commit b676338

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎net/core/neighbour.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1857,7 +1857,8 @@ static int neightbl_fill_info(struct sk_buff *skb, struct neigh_table *tbl,
18571857
ndst.ndts_table_fulls += st->table_fulls;
18581858
}
18591859

1860-
if (nla_put(skb, NDTA_STATS, sizeof(ndst), &ndst))
1860+
if (nla_put_64bit(skb, NDTA_STATS, sizeof(ndst), &ndst,
1861+
NDTA_PAD))
18611862
goto nla_put_failure;
18621863
}
18631864

0 commit comments

Comments
 (0)