]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: Check for empty allocation instead of just NULL pointer
authorMartin Kletzander <mkletzan@redhat.com>
Sat, 27 Jan 2018 18:00:54 +0000 (19:00 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 29 Jan 2018 20:40:53 +0000 (21:40 +0100)
commitbd5d07425de504c571d6d47ace8602fa86c1a1c8
tree775a83e3c2bde2c0f558d74f624af59a6297a3c0
parentb7a7912411d0a59d7a850b6534186636aca40540
util: Check for empty allocation instead of just NULL pointer

When working on the CAT series one of the changes was that the pointer got
allocated in another part of the code, even when resctrl was not available on
the host system.  However this one particular place neglected that so it needs
to be fixed in order to get the proper error message when requesting
<cachetune/> on HW with no support for it.

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