[lxc-devel] [PATCH 1/2] Properly cleanup network devices if pinning root filesystem didn't work

Christian Seiler christian at iwakd.de
Mon Mar 18 19:06:30 UTC 2013


Signed-off-by: Christian Seiler <christian at iwakd.de>
---
 src/lxc/start.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/start.c b/src/lxc/start.c
index 3fdfa04..7a982ce 100644
--- a/src/lxc/start.c
+++ b/src/lxc/start.c
@@ -785,7 +785,7 @@ int lxc_spawn(struct lxc_handler *handler)
 	handler->pinfd = pin_rootfs(handler->conf->rootfs.path);
 	if (handler->pinfd == -1) {
 		ERROR("failed to pin the container's rootfs");
-		goto out_abort;
+		goto out_delete_net;
 	}
 
 	/* Create a process in a new set of namespaces */
-- 
1.7.10.4





More information about the lxc-devel mailing list