platform: fix return value for error case in do_change_link_request()

There is a "goto retry" in do_change_link_request(), at that point,
seq_result has the value -EOPNOTSUPP, instead of
WAIT_FOR_NL_RESPONSE_RESULT_UNKNOWN.

Fixes: 02fb3eff48
(cherry picked from commit 145d199589)
This commit is contained in:
Thomas Haller 2016-08-30 16:20:40 +02:00
parent 4cf61eeafd
commit 89d68b1a96

View file

@ -4070,7 +4070,7 @@ do_change_link_request (NMPlatform *platform,
int nle;
if (!nm_platform_netns_push (platform, &netns))
return seq_result;
return WAIT_FOR_NL_RESPONSE_RESULT_UNKNOWN;
retry:
nle = _nl_send_auto_with_seq (platform, nlmsg, &seq_result, NULL);
@ -4078,7 +4078,7 @@ retry:
_LOGE ("do-change-link[%d]: failure sending netlink request \"%s\" (%d)",
ifindex,
nl_geterror (nle), -nle);
return seq_result;
return WAIT_FOR_NL_RESPONSE_RESULT_UNKNOWN;
}
/* always refetch the link after changing it. There seems to be issues