]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
util: Fix possible NULL dereference
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 19 Dec 2014 16:40:41 +0000 (17:40 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Sun, 21 Dec 2014 09:30:49 +0000 (10:30 +0100)
commit3b0f05573fbf385cca554d3383fad0089ed080cf
tree4a2c1afbeaf3e10bc11cd4af1384e1ae554be0bd
parentf5070e3ad0478206d2fc1d52d5efeade5abd9c7b
util: Fix possible NULL dereference

Commit 1a80b97d, which added the virCgroupHasEmptyTasks() function
forgot that the parameter @cgroup may be NULL and did not check that.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/util/vircgroup.c