Skip to contentSkip to conversation

bonding: fix netlink msg size

PATCH In review Scott Feldman 1 participant 1 message Jan 3, 2014

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH v2 4/5 bonding: fix netlink msg size

Add missing space for IFLA_BOND_ARP_IP_TARGET nest header.

---
 drivers/net/bonding/bond_netlink.c |    1 +
 1 file changed, 1 insertion(+)
drivers/net/bonding/bond_netlink.c +1 -0
index 1b4013b..555c783 100644
@@ -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 */