Commit b87ae730 authored by Pavel Emelyanov's avatar Pavel Emelyanov

netdev: Fix detection of device conf restore failure

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent eff166e9
...@@ -485,7 +485,7 @@ static int restore_links(int pid, NetnsEntry **netns) ...@@ -485,7 +485,7 @@ static int restore_links(int pid, NetnsEntry **netns)
* so we cant optimize its restore * so we cant optimize its restore
*/ */
ret = ipv4_conf_op(nde->name, nde->conf, CTL_WRITE, nde->type == ND_TYPE__LOOPBACK ? NULL : netns); ret = ipv4_conf_op(nde->name, nde->conf, CTL_WRITE, nde->type == ND_TYPE__LOOPBACK ? NULL : netns);
if (!ret) if (ret < 0)
return ret; return ret;
} }
exit: exit:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment