Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e139862e authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

bonding: bond_get_size() returns wrong size



There is an extra semi-colon so bond_get_size() doesn't return the
correct value.

Fixes: ec76aa49 ('bonding: add Netlink support active_slave option')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarVeaceslav Falico <vfalico@redhat.com>
Reviewed-by: default avatarJiri Pirko <jiri@resnulli.us>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent f99f4f8b
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -82,8 +82,8 @@ static int bond_newlink(struct net *src_net, struct net_device *bond_dev,

static size_t bond_get_size(const struct net_device *bond_dev)
{
	return nla_total_size(sizeof(u8));	/* IFLA_BOND_MODE */
		+ nla_total_size(sizeof(u32));	/* IFLA_BOND_ACTIVE_SLAVE */
	return nla_total_size(sizeof(u8)) +	/* IFLA_BOND_MODE */
		nla_total_size(sizeof(u32));	/* IFLA_BOND_ACTIVE_SLAVE */
}

static int bond_fill_info(struct sk_buff *skb,