bonding: fix netlink msg size
authorsfeldma@cumulusnetworks.com <sfeldma@cumulusnetworks.com>
Fri, 3 Jan 2014 22:28:11 +0000 (14:28 -0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 4 Jan 2014 02:03:21 +0000 (21:03 -0500)
Add missing space for IFLA_BOND_ARP_IP_TARGET nest header.

Signed-off-by: Scott Feldman <sfeldma@cumulusnetworks.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_netlink.c

index 1b4013b..555c783 100644 (file)
@@ -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 */