Permalink
Browse files

Properly cleanup network devices if pinning root filesystem didn't work

Signed-off-by: Christian Seiler <christian@iwakd.de>
Acked-by: Serge E. Hallyn <serge.hallyn@ubuntu.com>
  • Loading branch information...
1 parent 675693a commit d71d919efbd9b1e7d7b1c51ff9f809f94aedaff3 @chris-se chris-se committed with stgraber Mar 18, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/lxc/start.c
View
@@ -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 */

0 comments on commit d71d919

Please sign in to comment.