From: Chen Hanxiao Date: Mon, 30 Sep 2013 09:06:25 +0000 (+0800) Subject: lxc: do cleanup when failed to bind fs as read-only X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=4b2b078a8b242563577f34c68a450ad62f58713b;p=libvirt.git lxc: do cleanup when failed to bind fs as read-only We forgot to do cleanup when lxcContainerMountFSTmpfs failed to bind fs as read-only. Signed-off-by: Chen Hanxiao Signed-off-by: Eric Blake --- diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index c60f5d8a5d..b1f429cd20 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -1451,6 +1451,7 @@ static int lxcContainerMountFSTmpfs(virDomainFSDefPtr fs, virReportSystemError(errno, _("Failed to make directory %s readonly"), fs->dst); + goto cleanup; } }