diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index a6529c55ffb7adc5c48203e1a57c59c0ba01b806..2b9d7d08ed4d0f7540914bbbb9e895e5fc1d9fe6 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c @@ -2852,7 +2852,10 @@ static int nlmsg_populate_fdb_fill(struct sk_buff *skb, static inline size_t rtnl_fdb_nlmsg_size(void) { - return NLMSG_ALIGN(sizeof(struct ndmsg)) + nla_total_size(ETH_ALEN); + return NLMSG_ALIGN(sizeof(struct ndmsg)) + + nla_total_size(ETH_ALEN) + /* NDA_LLADDR */ + nla_total_size(sizeof(u16)) + /* NDA_VLAN */ + 0; } static void rtnl_fdb_notify(struct net_device *dev, u8 *addr, u16 vid, int type,