summaryrefslogtreecommitdiffstats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorEduardo Habkost2015-02-12 18:23:48 +0100
committerEduardo Habkost2015-03-19 20:01:22 +0100
commited26b92290768818371fbfd4317988eab6009ad5 (patch)
treef31e7a6df06773ca7753b5161d223a92413a7506 /scripts/qapi-types.py
parentMerge remote-tracking branch 'remotes/kevin/tags/for-upstream' into staging (diff)
downloadqemu-ed26b92290768818371fbfd4317988eab6009ad5.tar.gz
qemu-ed26b92290768818371fbfd4317988eab6009ad5.tar.xz
qemu-ed26b92290768818371fbfd4317988eab6009ad5.zip
numa: Fix off-by-one error at MAX_CPUMASK_BITS check
Fix the CPU index check to ensure we don't go beyond the size of the node_cpu bitmap. CPU index is always less than MAX_CPUMASK_BITS, as documented at sysemu.h: > The following shall be true for all CPUs: > cpu->cpu_index < max_cpus <= MAX_CPUMASK_BITS Reviewed-by: Igor Mammedov <imammedo@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions