We do not have a pointer to the device here, just its source.
---
src/qemu/qemu_cgroup.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index f3cf41c..3ce7fc6 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu/qemu_cgroup.c
@@ -150,20 +150,20 @@ qemuTeardownDiskCgroup(virDomainObjPtr vm,
static int
qemuSetupChrSourceCgroup(virDomainObjPtr vm,
- virDomainChrSourceDefPtr dev)
+ virDomainChrSourceDefPtr source)
{
qemuDomainObjPrivatePtr priv = vm->privateData;
int ret;
- if (dev->type != VIR_DOMAIN_CHR_TYPE_DEV)
+ if (source->type != VIR_DOMAIN_CHR_TYPE_DEV)
return 0;
- VIR_DEBUG("Process path '%s' for device", dev->data.file.path);
+ VIR_DEBUG("Process path '%s' for device",
source->data.file.path);
- ret = virCgroupAllowDevicePath(priv->cgroup, dev->data.file.path,
+ ret = virCgroupAllowDevicePath(priv->cgroup, source->data.file.path,
VIR_CGROUP_DEVICE_RW);
virDomainAuditCgroupPath(vm, priv->cgroup, "allow",
- dev->data.file.path, "rw", ret == 0);
+ source->data.file.path, "rw", ret == 0);
return ret;
}
--
2.4.6