diff --git a/src/util/virresctrl.c b/src/util/virresctrl.c index 754820ee46..03218a481d 100644 --- a/src/util/virresctrl.c +++ b/src/util/virresctrl.c @@ -1472,7 +1472,7 @@ virResctrlAllocCreate(virResctrlInfoPtr resctrl, if (!alloc) return 0; - if (!resctrl) { + if (virResctrlInfoIsEmpty(resctrl)) { virReportError(VIR_ERR_CONFIG_UNSUPPORTED, "%s", _("Resource control is not supported on this host")); return -1;