]> xenbits.xensource.com Git - libvirt.git/commit
qemu: cgroup: Don't use NULL path on default backed RNGs
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Jul 2014 13:47:39 +0000 (15:47 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 25 Jul 2014 07:34:53 +0000 (09:34 +0200)
commit99ff49eed10ec980017d6b920e7277b298f77e3e
treef937e44028008994ff497ec0c030d78ffdfda277
parent3d968f409fa7f5bf95069ea08983b1454992d166
qemu: cgroup: Don't use NULL path on default backed RNGs

The "random" backend for virtio-rng can be started with no path
specified which equals to /dev/random. The cgroup code didn't consider
this and called few of the functions with NULL resulting into:

 $ virsh start rng-vm
 error: Failed to start domain rng-vm
 error: Path '(null)' is not accessible: Bad address

Problem introduced by commit c6320d34637a9883e31c4081d418fc33a4277cf2
src/qemu/qemu_cgroup.c