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

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

openvswitch: Fix ovs_vport_cmd_new return value on success



If the pointer does not represent an error then the PTR_ERR
macro may still return a nonzero value.

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

	err = 0;
	reply = ovs_vport_cmd_build_info(vport, info->snd_portid, info->snd_seq,
					 OVS_VPORT_CMD_NEW);
	if (IS_ERR(reply)) {