mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 16:00:21 +01:00
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 commit145d199589)
This commit is contained in:
parent
4cf61eeafd
commit
89d68b1a96
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue