]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemuDomainGetResctrlMonData: Dereference resctrl monitor iff not NULL
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Aug 2019 11:44:17 +0000 (13:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 6 Aug 2019 12:37:30 +0000 (14:37 +0200)
commit9fc616cc101cdf8cd4a4679d2aa6db5ff5455c14
treebb44f6501320637d70ee3b1c479b6adc489df271
parent9801ee899faade87d9b6beb94df464076e7c0830
qemuDomainGetResctrlMonData: Dereference resctrl monitor iff not NULL

If the host doesn't have resctrl then the monitor is going to be
NULL and we must avoid dereferencing it.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c