]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
numa: fix assumption in virNumaNodeIsAvailable()
authorMartin Kletzander <mkletzan@redhat.com>
Thu, 6 Nov 2014 11:17:10 +0000 (12:17 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Thu, 6 Nov 2014 14:13:55 +0000 (15:13 +0100)
commit877a222449c3f6779936447a6d9d606f7f2892c9
treec134466dc7cc0c0f22769b9b390f120a8bc790aa
parentc63ef0452b299899fbe55559b8d9e8818e91566d
numa: fix assumption in virNumaNodeIsAvailable()

When compiled without full numa support, the stub function for
virNumaNodeIsAvailable() just checks whether specified node is in range
<0, max); where max is maximum NUMA node available on the host.  But
because the maximum node number is the highest usabe number (and not the
count of nodes), the check is incorrect as it should check whether the
specified node is in range <0, max> instead.

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