[CRIU] [PATCH] netdev: Fix detection of device conf restore failure
Pavel Emelyanov
xemul at parallels.com
Thu Apr 9 11:27:32 PDT 2015
Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
net.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/net.c b/net.c
index cdeed6d..acd1ca1 100644
--- a/net.c
+++ b/net.c
@@ -485,7 +485,7 @@ static int restore_links(int pid, NetnsEntry **netns)
* so we cant optimize its restore
*/
ret = ipv4_conf_op(nde->name, nde->conf, CTL_WRITE, nde->type == ND_TYPE__LOOPBACK ? NULL : netns);
- if (!ret)
+ if (ret < 0)
return ret;
}
exit:
--
1.9.3
More information about the CRIU
mailing list