[CRIU] [PATCH 1/3] cg: Use the right path offset to restore properties

Tycho Andersen tycho.andersen at canonical.com
Thu Aug 21 14:00:21 PDT 2014


Signed-off-by: Tycho Andersen <tycho.andersen at canonical.com>
---
 cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cgroup.c b/cgroup.c
index 3c7e48a..c5ae154 100644
--- a/cgroup.c
+++ b/cgroup.c
@@ -1001,7 +1001,7 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e
 		 */
 		if (e->properties) {
 			for (j = 0; j < e->n_properties; ++j) {
-				if (restore_cgroup_prop(e->properties[j], path, off) < 0)
+				if (restore_cgroup_prop(e->properties[j], path, off2) < 0)
 					return -1;
 			}
 		}
-- 
1.9.1



More information about the CRIU mailing list