[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1461657978-13360-8-git-send-email-nicolas.dichtel@6wind.com>
Date: Tue, 26 Apr 2016 10:06:17 +0200
From: Nicolas Dichtel <nicolas.dichtel@...nd.com>
To: netdev@...r.kernel.org
Cc: davem@...emloft.net, sd@...asysnail.net, johannes@...solutions.net,
kvalo@...eaurora.org, linux-wireless@...r.kernel.org,
jack@...e.com, linux-kernel@...r.kernel.org, pshelar@...ira.com,
dev@...nvswitch.org, jhs@...atatu.com, philipp.reisner@...bit.com,
lars.ellenberg@...bit.com, drbd-dev@...ts.linbit.com,
Nicolas Dichtel <nicolas.dichtel@...nd.com>
Subject: [PATCH net-next 7/8] neigh: align nlattr properly when needed
Signed-off-by: Nicolas Dichtel <nicolas.dichtel@...nd.com>
---
net/core/neighbour.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index 6a395d440228..29dd8cc22bbf 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -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;
}
--
2.8.1
Powered by blists - more mailing lists