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: Rich Lane <rlane@bigswitch.com>
Signed-off-by: Jesse Gross <jesse@nicira.com>
if (IS_ERR(reply))
goto exit_unlock;
if (IS_ERR(reply))
goto exit_unlock;
ovs_dp_detach_port(vport);
genl_notify(reply, genl_info_net(info), info->snd_portid,
ovs_dp_detach_port(vport);
genl_notify(reply, genl_info_net(info), info->snd_portid,