diff --git a/src/util/vircgroup.c b/src/util/vircgroup.c index b6affe37458d0e7d65034a2bbb9e888b6264e51f..b9d8262aa83e1d07aec5bf534bb4e3b0f7d7e40e 100644 --- a/src/util/vircgroup.c +++ b/src/util/vircgroup.c @@ -669,6 +669,11 @@ virCgroupDetect(virCgroupPtr group, controllers &= ~(1 << i); } } else { + if (!group->controllers[i].mountPoint) { + /* without controller co-mounting is impossible */ + continue; + } + /* Check whether a request to disable a controller * clashes with co-mounting of controllers */ for (j = 0; j < VIR_CGROUP_CONTROLLER_LAST; j++) {