[Devel] [PATCH 1/1] restore_ipc_ns: set ret=0 if no error
Serge E. Hallyn
serue at us.ibm.com
Mon Jun 15 13:59:11 PDT 2009
Why pretend there's an error when there isn't?
(Without this, all restarts fail with CONFIG_UTS_NS or CONFIG_IPC_NS
on)
Signed-off-by: Serge E. Hallyn <serue at us.ibm.com>
---
kernel/nsproxy.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/kernel/nsproxy.c b/kernel/nsproxy.c
index e3db0b9..5fae13c 100644
--- a/kernel/nsproxy.c
+++ b/kernel/nsproxy.c
@@ -308,6 +308,7 @@ static struct nsproxy *do_restore_ns(struct ckpt_ctx *ctx)
nsproxy = create_nsproxy();
if (!nsproxy)
goto out;
+ ret = 0;
get_uts_ns(uts_ns);
nsproxy->uts_ns = uts_ns;
--
1.6.1
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers
More information about the Devel
mailing list