diff -rup libvirt-0.7.1/src/qemu_driver.c new/src/qemu_driver.c --- libvirt-0.7.1/src/qemu_driver.c 2010-06-03 13:51:14.398483000 -0400 +++ new/src/qemu_driver.c 2010-06-03 13:56:05.667092000 -0400 @@ -5988,7 +5988,7 @@ static int qemudDomainAttachDevice(virDo virDomainDiskDeviceTypeToString(dev->data.disk->device)); /* Fallthrough */ } - if (ret != 0) { + if (ret != 0 && cgroup) { virCgroupDenyDevicePath(cgroup, dev->data.disk->src); }