]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Avoid libvirtd crash when cgroups is not configured on host
authorJim Fehlig <jfehlig@novell.com>
Mon, 22 Mar 2010 15:42:14 +0000 (09:42 -0600)
committerJim Fehlig <jfehlig@novell.com>
Mon, 22 Mar 2010 15:42:14 +0000 (09:42 -0600)
commit09fafa1e21d71dbfd51727e20614bf5f7236a339
treec1b4001da146acb4238c90a7bc6f14a1494fa6a0
parent65e97240e6e4606820dd1c42ac172319e0af4d8d
Avoid libvirtd crash when cgroups is not configured on host

Invoking virDomainSetMemory() on lxc driver results in libvirtd
segfault when cgroups has not been configured on the host.

Ensure driver->cgroup is non-null before invoking
virCgroupForDomain().  To prevent similar segfaults in the future,
ensure driver parameter to virCgroupForDomain() is non-null before
dereferencing.
src/lxc/lxc_driver.c
src/util/cgroup.c