Commit 8ff0b1ef authored by Tycho Andersen's avatar Tycho Andersen Committed by Pavel Emelyanov

cg: Use the right path offset to restore properties

Signed-off-by: 's avatarTycho Andersen <tycho.andersen@canonical.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent d8b41b65
......@@ -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;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment