Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

neigh: align nlattr properly when needed

Signed-off-by: Nicolas Dichtel <nicolas.dichtel@6wind.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Nicolas Dichtel and committed by
David S. Miller
b676338f 270cb4d0

+2 -1
+2 -1
net/core/neighbour.c
··· 1857 1857 ndst.ndts_table_fulls += st->table_fulls; 1858 1858 } 1859 1859 1860 - if (nla_put(skb, NDTA_STATS, sizeof(ndst), &ndst)) 1860 + if (nla_put_64bit(skb, NDTA_STATS, sizeof(ndst), &ndst, 1861 + NDTA_PAD)) 1861 1862 goto nla_put_failure; 1862 1863 } 1863 1864