]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
bonding: bond_get_size() returns wrong size
authorDan Carpenter <dan.carpenter@oracle.com>
Fri, 1 Nov 2013 10:18:44 +0000 (13:18 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 2 Nov 2013 06:08:54 +0000 (02:08 -0400)
There is an extra semi-colon so bond_get_size() doesn't return the
correct value.

Fixes: ec76aa49855f ('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>
drivers/net/bonding/bond_netlink.c

index 7661261de2f0b8374469efdb64991c2a8fedf2a4..40e7b1cb4aeaa622c62b40b455670c2c8fd5b04a 100644 (file)
@@ -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,