Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 734907e8 authored by Rich Lane's avatar Rich Lane Committed by Jesse Gross
Browse files

openvswitch: Fix ovs_vport_cmd_del return value on success



If the pointer does not represent an error then the PTR_ERR macro may still
return a nonzero value. The fix is the same as in ovs_vport_cmd_set.

Signed-off-by: default avatarRich Lane <rlane@bigswitch.com>
Signed-off-by: default avatarJesse Gross <jesse@nicira.com>
parent 19f949f5
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -1772,6 +1772,7 @@ static int ovs_vport_cmd_del(struct sk_buff *skb, struct genl_info *info)
	if (IS_ERR(reply))
	if (IS_ERR(reply))
		goto exit_unlock;
		goto exit_unlock;


	err = 0;
	ovs_dp_detach_port(vport);
	ovs_dp_detach_port(vport);


	genl_notify(reply, genl_info_net(info), info->snd_portid,
	genl_notify(reply, genl_info_net(info), info->snd_portid,