Skip to content

Commit e139862

Browse files
Dan Carpenterdavem330
authored andcommitted
bonding: bond_get_size() returns wrong size
There is an extra semi-colon so bond_get_size() doesn't return the correct value. Fixes: ec76aa4 ('bonding: add Netlink support active_slave option') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Veaceslav Falico <vfalico@redhat.com> Reviewed-by: Jiri Pirko <jiri@resnulli.us> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent f99f4f8 commit e139862

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/net/bonding/bond_netlink.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ static int bond_newlink(struct net *src_net, struct net_device *bond_dev,
8282

8383
static size_t bond_get_size(const struct net_device *bond_dev)
8484
{
85-
return nla_total_size(sizeof(u8)); /* IFLA_BOND_MODE */
86-
+ nla_total_size(sizeof(u32)); /* IFLA_BOND_ACTIVE_SLAVE */
85+
return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */
86+
nla_total_size(sizeof(u32)); /* IFLA_BOND_ACTIVE_SLAVE */
8787
}
8888

8989
static int bond_fill_info(struct sk_buff *skb,

0 commit comments

Comments
 (0)