[Devel] [PATCH criu-stable] vz7/cgroup: fix ifpriomap skip

Pavel Tikhomirov ptikhomirov at virtuozzo.com
Mon Jan 15 13:04:24 MSK 2018


"!(strcmp(...))==0" stands for does not match, but we need a match here

fixes commit f06b39de5b7b ("vz7/cgroup: Skip for awhile ifpriomap
property restore")

Signed-off-by: Pavel Tikhomirov <ptikhomirov at virtuozzo.com>
---
 criu/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/cgroup.c b/criu/cgroup.c
index e873e95bb..d48eb59e9 100644
--- a/criu/cgroup.c
+++ b/criu/cgroup.c
@@ -1339,7 +1339,7 @@ static int prepare_cgroup_dir_properties(char *path, int off, CgroupDirEntry **e
 				 * XXX: Skip for a while ifpriomap property
 				 * restore, will be fixed by PSBM-66683.
 				 */
-				if (!strcmp(e->properties[j]->name, "net_prio.ifpriomap") == 0)
+				if (!strcmp(e->properties[j]->name, "net_prio.ifpriomap"))
 					continue;
 
 				if (restore_cgroup_prop(e->properties[j], path, off2) < 0) {
-- 
2.14.3



More information about the Devel mailing list