From: sfeldma@cumulusnetworks.com Date: Fri, 3 Jan 2014 22:28:11 +0000 (-0800) Subject: bonding: fix netlink msg size X-Git-Tag: MMI-PSA29.97-13-9~12877^2~301^2~1 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=288db0aafe8af0bf20674763196e3c272f22da88;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git bonding: fix netlink msg size Add missing space for IFLA_BOND_ARP_IP_TARGET nest header. Signed-off-by: Scott Feldman Signed-off-by: David S. Miller --- diff --git a/drivers/net/bonding/bond_netlink.c b/drivers/net/bonding/bond_netlink.c index 1b4013b5f230..555c7837d8e6 100644 --- a/drivers/net/bonding/bond_netlink.c +++ b/drivers/net/bonding/bond_netlink.c @@ -296,6 +296,7 @@ static size_t bond_get_size(const struct net_device *bond_dev) nla_total_size(sizeof(u8)) + /* IFLA_BOND_USE_CARRIER */ nla_total_size(sizeof(u32)) + /* IFLA_BOND_ARP_INTERVAL */ /* IFLA_BOND_ARP_IP_TARGET */ + nla_total_size(sizeof(struct nlattr)) + nla_total_size(sizeof(u32)) * BOND_MAX_ARP_TARGETS + nla_total_size(sizeof(u32)) + /* IFLA_BOND_ARP_VALIDATE */ nla_total_size(sizeof(u32)) + /* IFLA_BOND_ARP_ALL_TARGETS */