]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
Properly cleanup network devices if pinning root filesystem didn't work
authorChristian Seiler <christian@iwakd.de>
Mon, 18 Mar 2013 19:06:30 +0000 (20:06 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 19 Mar 2013 13:18:20 +0000 (09:18 -0400)
Signed-off-by: Christian Seiler <christian@iwakd.de>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
src/lxc/start.c

index 6613f3531f02be879edafc66414ffe78e96b7863..fd3ad7b3a963226c096a43f6c861a09dbad65e13 100644 (file)
@@ -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 */