From: Ansis Atteka Date: Sat, 7 Apr 2012 00:35:12 +0000 (-0700) Subject: datapath: Do not send notification if ovs_vport_set_options() failed X-Git-Tag: sliver-openvswitch-0.1-1~122 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;ds=sidebyside;h=53509ad55c16816d7a88a5695853555c7ef3572e;hp=e385ef551a09abcba77810bcea0eb3ca559c09a3;p=sliver-openvswitch.git datapath: Do not send notification if ovs_vport_set_options() failed There is no need to send a notification if ovs_vport_set_options() failed and ovs_vport_cmd_set() did not change anything. Issue#10285 Signed-off-by: Ansis Atteka --- diff --git a/datapath/datapath.c b/datapath/datapath.c index 7f3139401..2fe6fdd68 100644 --- a/datapath/datapath.c +++ b/datapath/datapath.c @@ -1883,6 +1883,8 @@ static int ovs_vport_cmd_set(struct sk_buff *skb, struct genl_info *info) err = ovs_vport_set_options(vport, a[OVS_VPORT_ATTR_OPTIONS]); if (!err) err = change_vport(vport, a); + else + goto exit_unlock; if (!err && a[OVS_VPORT_ATTR_UPCALL_PID]) vport->upcall_pid = nla_get_u32(a[OVS_VPORT_ATTR_UPCALL_PID]);