datapath: Fix ovs_vport_cmd_new return value on success
authorRich Lane <rlane@bigswitch.com>
Fri, 8 Feb 2013 20:09:31 +0000 (12:09 -0800)
committerJesse Gross <jesse@nicira.com>
Fri, 8 Feb 2013 21:11:39 +0000 (13:11 -0800)
This bug was introduced in 1fc7083d (datapath: Remove vport MAC address
configuration.)

Signed-off-by: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
datapath/datapath.c

index f78c232..87c96ae 100644 (file)
@@ -1967,6 +1967,7 @@ static int ovs_vport_cmd_new(struct sk_buff *skb, struct genl_info *info)
        if (IS_ERR(vport))
                goto exit_unlock;
 
+       err = 0;
        if (a[OVS_VPORT_ATTR_STATS])
                ovs_vport_set_stats(vport, nla_data(a[OVS_VPORT_ATTR_STATS]));