[PATCH 1/3] cpu.c: Check properly for virCapabilitiesGetNodeInfo() retval
Peter Krempa
pkrempa at redhat.com
Fri Jan 24 11:02:30 UTC 2020
On Fri, Jan 24, 2020 at 11:27:16 +0100, Michal Privoznik wrote:
> The virCapabilitiesGetNodeInfo() function has the usual return
> value semantics for integeres: a negative value means an error,
> zero or a positive value means success. However, the function
> call done in virCPUProbeHost() doesn't check for the return value
> accordingly.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
> src/cpu/cpu.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Peter Krempa <pkrempa at redhat.com>
More information about the libvir-list
mailing list