[ovs-dev] [PATCH] datapath: Fix ovs_vport_cmd_new return value on success

Rich Lane rich.lane at bigswitch.com
Fri Feb 8 20:09:31 UTC 2013


This bug was introduced in 1fc7083d (datapath: Remove vport MAC address
configuration.)

Signed-off-by: Rich Lane <rlane at bigswitch.com>
---
 datapath/datapath.c |    1 +
 1 file changed, 1 insertion(+)

diff --git a/datapath/datapath.c b/datapath/datapath.c
index f78c232..87c96ae 100644
--- a/datapath/datapath.c
+++ b/datapath/datapath.c
@@ -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]));
 
-- 
1.7.9.5




More information about the dev mailing list