3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-26 02:19:26 +01:00

ap: fixup incorrect return

If an RTNL address change fails -EIO should be returned, not
false (aka "success").
This commit is contained in:
James Prestwood 2020-11-02 12:17:52 -08:00 committed by Denis Kenzior
parent d03ea531de
commit 5420fdaf01

View File

@ -2412,7 +2412,7 @@ static int ap_load_profile_and_dhcp(struct ap_state *ap, bool *wait_dhcp)
if (!ap->rtnl_add_cmd) { if (!ap->rtnl_add_cmd) {
l_error("Failed to add IPv4 address"); l_error("Failed to add IPv4 address");
return false; return -EIO;
} }
ap->cleanup_ip = true; ap->cleanup_ip = true;