提交 e139862e 编写于 作者: D Dan Carpenter 提交者: David S. Miller

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: NDan Carpenter <dan.carpenter@oracle.com>
Acked-by: NVeaceslav Falico <vfalico@redhat.com>
Reviewed-by: NJiri Pirko <jiri@resnulli.us>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 f99f4f8b
...@@ -82,8 +82,8 @@ static int bond_newlink(struct net *src_net, struct net_device *bond_dev, ...@@ -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) static size_t bond_get_size(const struct net_device *bond_dev)
{ {
return nla_total_size(sizeof(u8)); /* IFLA_BOND_MODE */ return nla_total_size(sizeof(u8)) + /* IFLA_BOND_MODE */
+ nla_total_size(sizeof(u32)); /* IFLA_BOND_ACTIVE_SLAVE */ nla_total_size(sizeof(u32)); /* IFLA_BOND_ACTIVE_SLAVE */
} }
static int bond_fill_info(struct sk_buff *skb, static int bond_fill_info(struct sk_buff *skb,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册