]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainNumaGetNodeDistance: Fix input arguments validation
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 14 Nov 2017 13:24:20 +0000 (14:24 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 23 Nov 2017 13:54:31 +0000 (14:54 +0100)
commit0ededbb84eb34539e326b4d4791772b699352302
treed37ebe520673fbed2a09aca1e85d5eb46a2fc6b9
parent96f7a045e93ad08eb4130be97dd6d8a8c963a952
virDomainNumaGetNodeDistance: Fix input arguments validation

There's no point in checking if numa->mem_nodes[node].ndistances
is set if we check for numa->mem_nodes[node].distances. However,
it makes sense to check if the sibling node (@cellid) caller
passed falls within boundaries.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/numa_conf.c