From 4b2b078a8b242563577f34c68a450ad62f58713b Mon Sep 17 00:00:00 2001 From: Chen Hanxiao Date: Mon, 30 Sep 2013 17:06:25 +0800 Subject: [PATCH] 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 --- src/lxc/lxc_container.c | 1 + 1 file changed, 1 insertion(+) 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; } } -- GitLab