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

Submitted by Pavel Tikhomirov on Jan. 15, 2018, 10:04 a.m.

Details

Message ID 20180115100424.18239-1-ptikhomirov@virtuozzo.com
State New
Series "vz7/cgroup: fix ifpriomap skip"
Headers show

Commit Message

Pavel Tikhomirov Jan. 15, 2018, 10:04 a.m.
"!(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@virtuozzo.com>
---
 criu/cgroup.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Patch hide | download patch | download mbox

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) {

Comments

Kirill Gorkunov Jan. 15, 2018, 11:39 a.m.
On Mon, Jan 15, 2018 at 01:04:24PM +0300, Pavel Tikhomirov wrote:
> "!(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@virtuozzo.com>
Acked-off-by: Cyrill Gorcunov <gorcunov@openvz.org>

Kirill, take it please